- Aggiornato node.js alla versione 22.18.1
- Aggiornato tutti i pacchetti del server all'ultima versione. - passato mongoose da versione 5 a versione 6
This commit is contained in:
@@ -163,6 +163,16 @@ export default defineComponent({
|
||||
transition: 'height 0.3s ease-in-out'
|
||||
}))
|
||||
|
||||
const numpart = ref<number | null>(null);
|
||||
|
||||
const updatePart = () => {
|
||||
numpart.value = calendarStore.getNumParticipants(
|
||||
myrec.value,
|
||||
true,
|
||||
tools.peopleWhere.participants
|
||||
);
|
||||
};
|
||||
|
||||
const filtercustom: any = computed(() => {
|
||||
|
||||
let queryreact = {}
|
||||
@@ -190,7 +200,7 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
async function load() {
|
||||
console.log('load')
|
||||
// console.log('load')
|
||||
// Carica il record
|
||||
if (props.idRec) {
|
||||
await userStore.loadGeneric(props.table, props.idRec, idnotif.value).then((ris) => {
|
||||
@@ -218,6 +228,8 @@ export default defineComponent({
|
||||
|
||||
col.value = fieldsTable.getArrColsByTable(props.table)
|
||||
|
||||
updatePart()
|
||||
|
||||
ismounted.value = true
|
||||
|
||||
}
|
||||
@@ -660,6 +672,7 @@ export default defineComponent({
|
||||
emit('showInMap', rec)
|
||||
}
|
||||
|
||||
|
||||
onMounted(mounted)
|
||||
|
||||
return {
|
||||
@@ -717,6 +730,8 @@ export default defineComponent({
|
||||
toggleShowScheda,
|
||||
showInMap,
|
||||
ismounted,
|
||||
updatePart,
|
||||
numpart,
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
@@ -190,11 +190,7 @@
|
||||
costanti.TIPOFAVBOOK.ATTEND,
|
||||
false,
|
||||
$t('cmd.attend', {
|
||||
num: calendarStore.getNumParticipants(
|
||||
myrec,
|
||||
true,
|
||||
tools.peopleWhere.participants
|
||||
),
|
||||
num: numpart,
|
||||
})
|
||||
)
|
||||
"
|
||||
@@ -205,11 +201,7 @@
|
||||
<q-item-section>
|
||||
{{
|
||||
$t("cmd.attend", {
|
||||
num: calendarStore.getNumParticipants(
|
||||
myrec,
|
||||
true,
|
||||
tools.peopleWhere.participants
|
||||
),
|
||||
num: numpart,
|
||||
})
|
||||
}}
|
||||
</q-item-section>
|
||||
@@ -287,13 +279,7 @@
|
||||
text-color="primary"
|
||||
color="white"
|
||||
class="badge-favbook"
|
||||
:label="
|
||||
calendarStore.getNumParticipants(
|
||||
myrec,
|
||||
true,
|
||||
tools.peopleWhere.participants
|
||||
)
|
||||
"
|
||||
:label="numpart"
|
||||
floating
|
||||
transparent
|
||||
/>
|
||||
@@ -764,10 +750,7 @@
|
||||
|
||||
<q-item-section>
|
||||
<q-item-label lines="1">
|
||||
<span
|
||||
v-html="
|
||||
tools.getlinkEmail(myrec.email, t('services.email'))
|
||||
"
|
||||
<span v-html="tools.getlinkEmailTo(myrec.email)"
|
||||
/></q-item-label>
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
@@ -809,12 +792,7 @@
|
||||
<q-item
|
||||
clickable
|
||||
v-if="
|
||||
table === shared_consts.TABLES_MYBACHECAS &&
|
||||
calendarStore.getNumParticipants(
|
||||
myrec,
|
||||
true,
|
||||
tools.peopleWhere.participants
|
||||
) > 0
|
||||
table === shared_consts.TABLES_MYBACHECAS && numpart > 0
|
||||
"
|
||||
>
|
||||
<q-item-section avatar>
|
||||
@@ -823,32 +801,19 @@
|
||||
|
||||
<q-item-section>
|
||||
<q-item-label lines="1">
|
||||
<span style="display: none">{{
|
||||
(part = calendarStore.getNumParticipants(
|
||||
myrec,
|
||||
true,
|
||||
tools.peopleWhere.participants
|
||||
))
|
||||
}}</span>
|
||||
<q-btn
|
||||
rounded
|
||||
color="primary"
|
||||
:label="
|
||||
part
|
||||
? $t('cmd.attend1', { num: part })
|
||||
: $t('cmd.attend', { num: part })
|
||||
numpart
|
||||
? $t('cmd.attend1', { num: numpart })
|
||||
: $t('cmd.attend', { num: numpart })
|
||||
"
|
||||
@click="
|
||||
clicca(
|
||||
costanti.TIPOFAVBOOK.ATTEND,
|
||||
false,
|
||||
$t('cmd.attend', {
|
||||
num: calendarStore.getNumParticipants(
|
||||
myrec,
|
||||
true,
|
||||
tools.peopleWhere.participants
|
||||
),
|
||||
})
|
||||
$t('cmd.attend', { num: numpart })
|
||||
)
|
||||
"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user