From 5c2433cc0393767396c44f748cab426c541cf9a8 Mon Sep 17 00:00:00 2001 From: Simon Reinisch Date: Thu, 28 Dec 2023 17:00:30 +0100 Subject: [PATCH] fix: make it possible to drag items into groups closes #25 --- .../base/draggable/Draggable.types.ts | 1 + .../components/base/draggable/Draggable.vue | 34 +++++++++++++------ src/app/components/base/draggable/store.ts | 5 ++- src/app/pages/shared/BudgetGroup.vue | 20 +++++++++-- src/app/pages/shared/BudgetGroups.vue | 26 +++++++++++--- src/i18n/locales/de.json | 1 + src/i18n/locales/en.json | 1 + src/store/state/index.ts | 12 +++++++ 8 files changed, 80 insertions(+), 20 deletions(-) diff --git a/src/app/components/base/draggable/Draggable.types.ts b/src/app/components/base/draggable/Draggable.types.ts index 1a0592e4..92017474 100644 --- a/src/app/components/base/draggable/Draggable.types.ts +++ b/src/app/components/base/draggable/Draggable.types.ts @@ -7,6 +7,7 @@ export interface DraggableEvent { } export interface ReorderEvent { + group: string; source: string; target: string; type: DropOrder; diff --git a/src/app/components/base/draggable/Draggable.vue b/src/app/components/base/draggable/Draggable.vue index ed183679..8979dd2c 100644 --- a/src/app/components/base/draggable/Draggable.vue +++ b/src/app/components/base/draggable/Draggable.vue @@ -10,7 +10,7 @@ @drag="drag" @dragstart="dragStart" > -