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