From fae2f87b77d792ebadc99388c4bf39e51c05acc2 Mon Sep 17 00:00:00 2001 From: Bernhard Riedlinger Date: Sat, 21 Mar 2020 17:31:23 +0100 Subject: [PATCH 1/2] Make tasks not dropped on another task to be inserted at the end of the task list --- src/mixins/movingTasksAndColumnsMixin.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/mixins/movingTasksAndColumnsMixin.js b/src/mixins/movingTasksAndColumnsMixin.js index 27e6d2b..8ac1517 100644 --- a/src/mixins/movingTasksAndColumnsMixin.js +++ b/src/mixins/movingTasksAndColumnsMixin.js @@ -23,12 +23,14 @@ export default { }, moveTask ({ fromColumnIndex, fromTaskIndex }) { const fromTasks = this.board.columns[fromColumnIndex].tasks + const toTasks = this.board.columns[this.columnIndex].tasks + const toTaskIndex = this.taskIndex === undefined ? toTasks.length : this.taskIndex this.$store.commit('MOVE_TASK', { fromTasks, + toTasks, fromTaskIndex, - toTasks: this.column.tasks, - toTaskIndex: this.taskIndex + toTaskIndex }) }, moveColumn ({ fromColumnIndex }) { From fb842be95d3cf956e5814f8240ad87d7bffe33b9 Mon Sep 17 00:00:00 2001 From: Bernhard Riedlinger Date: Sat, 21 Mar 2020 17:55:14 +0100 Subject: [PATCH 2/2] Make tasks in modal popup view work again --- src/components/AppDrag.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/AppDrag.vue b/src/components/AppDrag.vue index 22f0cff..9ac2405 100644 --- a/src/components/AppDrag.vue +++ b/src/components/AppDrag.vue @@ -4,6 +4,7 @@ @dragstart.self="onDrag" @dragover.prevent @dragenter.prevent + v-on="$listeners" >