- 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,
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
@@ -773,8 +773,8 @@
|
||||
</div>
|
||||
<div class="col-12 text-h7">
|
||||
<span
|
||||
v-if="checkifShow('descr') && showrules"
|
||||
v-html="circuit.regulation"
|
||||
v-if="checkifShow('descr') && showrules && circuit"
|
||||
v-html="getRegulation(circuit.regulation)"
|
||||
></span>
|
||||
</div>
|
||||
</q-card-section>
|
||||
@@ -1029,7 +1029,7 @@
|
||||
</div>
|
||||
<q-btn label="vedi Regolamento" @click="showrules = !showrules">
|
||||
</q-btn>
|
||||
<div v-if="showrules" v-html="circuit.regulation"></div>
|
||||
<div v-if="showrules && circuit" v-html="getRegulation(circuit.regulation)"></div>
|
||||
</q-card-section>
|
||||
<q-card-actions align="center">
|
||||
<q-btn
|
||||
|
||||
Reference in New Issue
Block a user