From 567e994b716a7be61e52c6d7a59c4c192102a700 Mon Sep 17 00:00:00 2001 From: Dominik Date: Sun, 7 Feb 2021 20:35:08 +0100 Subject: [PATCH] Fixed minor issues --- .../schedule/components/management/Eventtypes.vue | 6 +++--- .../components/overview/slots/EventSlot.vue | 8 +++++++- src/plugins/schedule/store/schedule.ts | 15 ++++++++++----- 3 files changed, 20 insertions(+), 9 deletions(-) diff --git a/src/plugins/schedule/components/management/Eventtypes.vue b/src/plugins/schedule/components/management/Eventtypes.vue index 50ad988..0e1d629 100644 --- a/src/plugins/schedule/components/management/Eventtypes.vue +++ b/src/plugins/schedule/components/management/Eventtypes.vue @@ -34,7 +34,7 @@ icon="mdi-pencil" @click="editType({ id: props.row.id, name: props.row.name })" /> - + @@ -114,8 +114,8 @@ export default defineComponent({ edittype.value = false; } - function deleteType(name: string) { - void store.dispatch('schedule/removeEventType', name); + function deleteType(id: number) { + void store.dispatch('schedule/removeEventType', id); } return { columns, diff --git a/src/plugins/schedule/components/overview/slots/EventSlot.vue b/src/plugins/schedule/components/overview/slots/EventSlot.vue index 52c4e55..d6dc3cc 100644 --- a/src/plugins/schedule/components/overview/slots/EventSlot.vue +++ b/src/plugins/schedule/components/overview/slots/EventSlot.vue @@ -68,7 +68,7 @@