diff --git a/deps/quasar-ui-qcalendar b/deps/quasar-ui-qcalendar index ac6d069..f245cb8 160000 --- a/deps/quasar-ui-qcalendar +++ b/deps/quasar-ui-qcalendar @@ -1 +1 @@ -Subproject commit ac6d0693a062f60d539d7f6d8fdee00fbcc528c7 +Subproject commit f245cb8b16c855c059d9170611797028c600696a diff --git a/src/plugins/schedule/components/overview/slots/EventSlot.vue b/src/plugins/schedule/components/overview/slots/EventSlot.vue index 4ef7d46..0af056b 100644 --- a/src/plugins/schedule/components/overview/slots/EventSlot.vue +++ b/src/plugins/schedule/components/overview/slots/EventSlot.vue @@ -64,7 +64,11 @@ export default defineComponent({ }, setup(props, { emit }) { const canDelete = computed(() => hasPermission(PERMISSIONS.DELETE)); - const canEdit = computed(() => hasPermission(PERMISSIONS.EDIT)); + const canEdit = computed( + () => + hasPermission(PERMISSIONS.EDIT) && + (props.modelValue?.end || props.modelValue.start) > new Date() + ); const event = computed({ get: () => props.modelValue, set: (v) => emit('update:modelValue', v),