Commit 7d0feab3 authored by Phil Hughes's avatar Phil Hughes Committed by Fatih Acet

Fixes layout issue on selected tab

Fixed modal not closing on cancel clicked
parent 48b3623f
......@@ -7,9 +7,10 @@
gl.issueBoards.ModalFooter = Vue.extend({
data() {
return Object.assign({}, Store.modal, {
return {
store: Store.modal,
disabled: false,
});
};
},
computed: {
submitDisabled() {
......@@ -25,10 +26,10 @@
},
methods: {
hideModal() {
this.showAddIssuesModal = false;
this.store.showAddIssuesModal = false;
},
addIssues() {
const issueIds = this.issues.filter(issue => issue.selected).map(issue => issue.id);
const issueIds = this.store.issues.filter(issue => issue.selected).map(issue => issue.id);
this.disabled = true;
},
......
......@@ -19,6 +19,16 @@
this.initMasonry();
});
},
issues: {
handler() {
if (this.activeTab === 'selected') {
this.$nextTick(() => {
listMasonry.layout();
});
}
},
deep: true,
}
},
computed: {
loading() {
......
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