Modifiche prima di Luglio...
This commit is contained in:
@@ -116,7 +116,7 @@ export default defineComponent({
|
||||
function getlistimages() {
|
||||
if (gallerylist.value)
|
||||
// return gallerylist.value.slice().sort((a: any, b: any) => a.order! - b.order!)
|
||||
return gallerylist.value
|
||||
return gallerylist.value.filter(filename => !filename)
|
||||
else
|
||||
return null
|
||||
}
|
||||
|
||||
@@ -116,10 +116,27 @@ export default defineComponent({
|
||||
return userStore.my.username
|
||||
}
|
||||
|
||||
function getRegulation(reg: string) {
|
||||
let strreg = reg + ''
|
||||
if (!reg) {
|
||||
let name = ''
|
||||
if (circuit.value!.hasOwnProperty('name')) {
|
||||
// @ts-ignore
|
||||
name = circuit.value!.name
|
||||
}
|
||||
const mystringa = t('circuit.regolamento', {nomecircuito: name})
|
||||
return mystringa
|
||||
} else {
|
||||
return reg
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
onMounted(mounted)
|
||||
|
||||
return {
|
||||
circuit,
|
||||
getRegulation,
|
||||
costanti,
|
||||
getImgCircuit,
|
||||
naviga,
|
||||
|
||||
@@ -441,7 +441,7 @@
|
||||
<div style="font-weight: bold; font-size: 1.25rem">Regolamento:</div>
|
||||
<q-btn label="vedi Regolamento" @click="showrules = !showrules">
|
||||
</q-btn>
|
||||
<div v-if="showrules" v-html="circuit.regulation"></div>
|
||||
<div v-if="showrules" v-html="getRegulation(circuit.regulation)"></div>
|
||||
</q-card-section>
|
||||
<q-card-actions align="center">
|
||||
<q-btn
|
||||
|
||||
Reference in New Issue
Block a user