release v2.0.0 #4
|
@ -1 +1 @@
|
|||
Subproject commit ac6d0693a062f60d539d7f6d8fdee00fbcc528c7
|
||||
Subproject commit f245cb8b16c855c059d9170611797028c600696a
|
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue