Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed two bugs that were introduced by lessen 9 (Extracting Drag & Drop) #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Make tasks not dropped on another task to be inserted at the end of t…
…he task list
  • Loading branch information
Upamo committed Mar 21, 2020
commit fae2f87b77d792ebadc99388c4bf39e51c05acc2
6 changes: 4 additions & 2 deletions src/mixins/movingTasksAndColumnsMixin.js
Original file line number Diff line number Diff line change
@@ -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 }) {