diff options
author | Phil Hughes <me@iamphill.com> | 2016-10-04 08:04:03 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-10-06 11:00:01 +0100 |
commit | a9c98be056d1c493670e846771b08cf8985bf7a6 (patch) | |
tree | 381729286990e46acb334a26cde49819b3667492 /app/assets/javascripts/boards/components | |
parent | 674844d0e98e3e9a730f3e67f17d688ec769f0e5 (diff) | |
download | gitlab-ce-a9c98be056d1c493670e846771b08cf8985bf7a6.tar.gz |
Moved form outside of list
This was causing issues with moving from the done list
Diffstat (limited to 'app/assets/javascripts/boards/components')
-rw-r--r-- | app/assets/javascripts/boards/components/board_list.js.es6 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/boards/components/board_list.js.es6 b/app/assets/javascripts/boards/components/board_list.js.es6 index bc74a7b23c9..208aac504fd 100644 --- a/app/assets/javascripts/boards/components/board_list.js.es6 +++ b/app/assets/javascripts/boards/components/board_list.js.es6 @@ -78,7 +78,7 @@ disabled: this.disabled, filter: '.board-list-count, .board-new-issue-form', onStart: (e) => { - const card = this.$refs.issue[e.oldIndex - 1]; + const card = this.$refs.issue[e.oldIndex]; Store.moving.issue = card.issue; Store.moving.list = card.list; @@ -89,7 +89,7 @@ gl.issueBoards.BoardsStore.moveIssueToList(Store.moving.list, this.list, Store.moving.issue); }, onRemove: (e) => { - this.$refs.issue[e.oldIndex - 1].$destroy(true); + this.$refs.issue[e.oldIndex].$destroy(true); } }); |