summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-02-03 16:05:15 +0000
committerPhil Hughes <me@iamphill.com>2017-02-03 16:25:02 +0000
commita810e2e2f28cdc5f204717f5caf24e4e9db4d22b (patch)
tree8743e84441e4179ee4e4fc345c4520787d77669d
parentfee064be01e6e37076b9af4028ade12a2ce0180a (diff)
downloadgitlab-ce-a810e2e2f28cdc5f204717f5caf24e4e9db4d22b.tar.gz
Fixed adding to list bug
-rw-r--r--app/assets/javascripts/boards/components/modal/footer.js.es67
1 files changed, 5 insertions, 2 deletions
diff --git a/app/assets/javascripts/boards/components/modal/footer.js.es6 b/app/assets/javascripts/boards/components/modal/footer.js.es6
index 4085a22b25a..a71d71106b4 100644
--- a/app/assets/javascripts/boards/components/modal/footer.js.es6
+++ b/app/assets/javascripts/boards/components/modal/footer.js.es6
@@ -8,7 +8,10 @@
gl.issueBoards.ModalFooter = Vue.extend({
mixins: [gl.issueBoards.ModalMixins],
data() {
- return ModalStore.store;
+ return {
+ modal: ModalStore.store,
+ state: gl.issueBoards.BoardsStore.state,
+ };
},
computed: {
submitDisabled() {
@@ -22,7 +25,7 @@
},
methods: {
addIssues() {
- const list = this.selectedList;
+ const list = this.modal.selectedList || this.state.lists[0];
const selectedIssues = ModalStore.getSelectedIssues();
const issueIds = selectedIssues.map(issue => issue.globalId);