++ aggiunta la prenotazione negli eventi. con la lista degli utenti.

This commit is contained in:
Surya Paolo
2023-04-17 00:11:45 +02:00
parent 6f1f962c0a
commit 3cf4562285
38 changed files with 2016 additions and 1278 deletions

View File

@@ -10,6 +10,7 @@ import { useQuasar } from 'quasar'
import { useI18n } from '@/boot/i18n'
import { CMyCardPopup } from '@/components/CMyCardPopup'
import { useRouter } from 'vue-router'
import { useCalendarStore } from '@src/store/CalendarStore'
export default defineComponent({
name: 'CMyRecCard',
@@ -40,6 +41,7 @@ export default defineComponent({
setup(props, { emit }) {
const userStore = useUserStore()
const calendarStore = useCalendarStore()
// const $q = useQuasar()
const { t } = useI18n()
const $router = useRouter()
@@ -92,9 +94,15 @@ export default defineComponent({
}
function getNameToShow(user: IUserFields, col = null) {
return userStore.getNameToShow(user, col)
if (props.table === shared_consts.TABLES_MYBACHECAS && myrec.value.groupname)
return myrec.value.groupname
else
return userStore.getNameToShow(user, col)
}
function isPartecipero() {
return (props.table === shared_consts.TABLES_MYBACHECAS && calendarStore.isPartecipero(myrec.value._id, props.table))
}
onMounted(mounted)
@@ -115,6 +123,8 @@ export default defineComponent({
visupage,
showBadge,
getNameToShow,
isPartecipero,
calendarStore,
}
},
})