Commit a810e2e2 authored by Phil Hughes's avatar Phil Hughes

Fixed adding to list bug

parent fee064be
No related merge requests found
...@@ -8,7 +8,10 @@ ...@@ -8,7 +8,10 @@
gl.issueBoards.ModalFooter = Vue.extend({ gl.issueBoards.ModalFooter = Vue.extend({
mixins: [gl.issueBoards.ModalMixins], mixins: [gl.issueBoards.ModalMixins],
data() { data() {
return ModalStore.store; return {
modal: ModalStore.store,
state: gl.issueBoards.BoardsStore.state,
};
}, },
computed: { computed: {
submitDisabled() { submitDisabled() {
...@@ -22,7 +25,7 @@ ...@@ -22,7 +25,7 @@
}, },
methods: { methods: {
addIssues() { addIssues() {
const list = this.selectedList; const list = this.modal.selectedList || this.state.lists[0];
const selectedIssues = ModalStore.getSelectedIssues(); const selectedIssues = ModalStore.getSelectedIssues();
const issueIds = selectedIssues.map(issue => issue.globalId); const issueIds = selectedIssues.map(issue => issue.globalId);
......
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