implement drag&drop for kanban

This commit is contained in:
marlon-erler
2024-07-25 16:20:43 +02:00
parent 0ed71600c6
commit 01ef0ac09c
8 changed files with 228 additions and 143 deletions
+6
View File
@@ -94,6 +94,12 @@ export default class BoardViewModel {
this.updateIndex();
};
handleDrop = (category?: string, status?: string): void => {
const draggedObject: any = this.coreViewModel.draggedObject.value;
if (draggedObject instanceof TaskViewModel == false) return;
draggedObject.setCategoryAndStatus(category, status);
};
// storage
storeLastUsedView = (): void => {
const path: string[] = this.getLastUsedBoardPath();