Commit 91e46dd4 authored by Phil Hughes's avatar Phil Hughes

Fixed issue when dragging a issue to the bottom when count element is visible

parent 5bf2ab73
...@@ -107,8 +107,12 @@ import boardCard from './board_card'; ...@@ -107,8 +107,12 @@ import boardCard from './board_card';
}); });
}, },
onUpdate: (e) => { onUpdate: (e) => {
gl.issueBoards.BoardsStore.moveIssueInList(this.list, Store.moving.issue, e.oldIndex, e.newIndex, this.sortable.toArray()); const sortedArray = this.sortable.toArray().filter(id => id !== '-1');
gl.issueBoards.BoardsStore.moveIssueInList(this.list, Store.moving.issue, e.oldIndex, e.newIndex, sortedArray);
}, },
onMove(e) {
return !e.related.classList.contains('board-list-count');
}
}); });
this.sortable = Sortable.create(this.$refs.list, options); this.sortable = Sortable.create(this.$refs.list, options);
......
...@@ -17,7 +17,8 @@ ...@@ -17,7 +17,8 @@
":root-path" => "rootPath", ":root-path" => "rootPath",
":disabled" => "disabled", ":disabled" => "disabled",
":key" => "issue.id" } ":key" => "issue.id" }
%li.board-list-count.text-center{ "v-if" => "showCount" } %li.board-list-count.text-center{ "v-if" => "showCount",
"data-issue-id" => "-1" }
= icon("spinner spin", "v-show" => "list.loadingMore" ) = icon("spinner spin", "v-show" => "list.loadingMore" )
%span{ "v-if" => "list.issues.length === list.issuesSize" } %span{ "v-if" => "list.issues.length === list.issuesSize" }
Showing all issues Showing all issues
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment