- Il circuito viene creato in automatico, quando scegli una provincia.
This commit is contained in:
@@ -86,6 +86,7 @@ export default defineComponent({
|
||||
|
||||
const cities = ref([] as ICity[])
|
||||
|
||||
|
||||
watch(() => path.value, (to: any, from: any) => {
|
||||
loadCircuit()
|
||||
})
|
||||
@@ -402,7 +403,7 @@ export default defineComponent({
|
||||
myid: circuit.value ? circuit.value._id : '',
|
||||
}
|
||||
}
|
||||
function extraparams_refused_groups() {
|
||||
function extraparams_refused_groups() {
|
||||
return {
|
||||
querytype: shared_consts.QUERYTYPE_REFUSED_GROUP_CIRCUIT,
|
||||
myid: circuit.value ? circuit.value._id : '',
|
||||
@@ -421,6 +422,17 @@ function extraparams_refused_groups() {
|
||||
return (circuit.value && circuit.value.admins) ? circuit.value.admins.map((rec) => rec.username).join(', ') : ''
|
||||
}
|
||||
|
||||
function getRegulation(reg: string) {
|
||||
let strreg = reg + ''
|
||||
if (!reg) {
|
||||
const mystringa = t('circuit.regolamento', {nomecircuito: circuit.value!.name})
|
||||
return mystringa
|
||||
} else {
|
||||
return reg
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
onMounted(mounted)
|
||||
|
||||
return {
|
||||
@@ -481,6 +493,7 @@ function extraparams_refused_groups() {
|
||||
loadCircuit,
|
||||
extraparams_rich_groups,
|
||||
extraparams_refused_groups,
|
||||
getRegulation,
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user