Site Configuration by Server Params (confsites and confpages)
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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')">
|
||||
|
||||
Reference in New Issue
Block a user