Site Configuration by Server Params (confsites and confpages)

This commit is contained in:
Surya Paolo
2022-11-28 14:00:15 +01:00
parent fab0dbbb72
commit 58dc1dfdcc
76 changed files with 2504 additions and 5004 deletions

View File

@@ -15,6 +15,7 @@ import { CMyPage } from '@/components/CMyPage/index'
import { IEvents, IOperators } from '@src/model'
import MixinEvents from '@/mixins/mixin-events'
import { useGlobalStore } from '@src/store/globalStore'
export default defineComponent({
name: 'CMySingleEvent',
@@ -29,6 +30,9 @@ export default defineComponent({
setup(props, { emit }) {
const selected = ref(false)
const globalStore = useGlobalStore()
const site = ref(globalStore.site)
const { isShowPrice, getImgEvent, getStyleByEvent, isAlreadyBooked, getWhereIcon, getWhereName,
editable, getContribtypeById, getPrice, isEventEnabled, findEventIndex, UpdateDbByFields,
@@ -94,6 +98,7 @@ export default defineComponent({
findEventIndex,
UpdateDbByFields,
selected,
site,
}
}

View File

@@ -172,13 +172,13 @@
</q-btn>
<q-btn
rounded class="q-mx-sm"
v-if="!myevent.nobookable && !isAlreadyBooked(myevent) && static_data.functionality.BOOKING_EVENTS"
v-if="!myevent.nobookable && !isAlreadyBooked(myevent) && site.confpages.bookingEvents"
color="primary" @click="addBookEventMenu(myevent)"
:label="$t('cal.booking')" :disable="!isEventEnabled(myevent)">
</q-btn>
<q-btn
rounded outline class="q-mx-sm"
v-if="!myevent.nobookable && isAlreadyBooked(myevent) && static_data.functionality.BOOKING_EVENTS"
v-if="!myevent.nobookable && isAlreadyBooked(myevent) && site.confpages.bookingEvents"
text-color="red"
@click="EditBookEvent(myevent)"
:label="$t('cal.modifybooking')">