release v2.0.0 #4

Merged
crimsen merged 481 commits from develop into master 2024-01-18 15:15:08 +00:00
2 changed files with 6 additions and 2 deletions
Showing only changes of commit 6da4f67d68 - Show all commits

@ -1 +1 @@
Subproject commit ac6d0693a062f60d539d7f6d8fdee00fbcc528c7 Subproject commit f245cb8b16c855c059d9170611797028c600696a

View File

@ -64,7 +64,11 @@ export default defineComponent({
}, },
setup(props, { emit }) { setup(props, { emit }) {
const canDelete = computed(() => hasPermission(PERMISSIONS.DELETE)); 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({ const event = computed({
get: () => props.modelValue, get: () => props.modelValue,
set: (v) => emit('update:modelValue', v), set: (v) => emit('update:modelValue', v),