Commit 76264cc0 authored by Phil Hughes's avatar Phil Hughes Committed by Fatih Acet

Reloads issues when re-opening modal

parent ff98a743
...@@ -2,9 +2,6 @@ ...@@ -2,9 +2,6 @@
(() => { (() => {
const Store = gl.issueBoards.BoardsStore; const Store = gl.issueBoards.BoardsStore;
window.gl = window.gl || {};
window.gl.issueBoards = window.gl.issueBoards || {};
gl.issueBoards.IssueCardInner = Vue.extend({ gl.issueBoards.IssueCardInner = Vue.extend({
props: [ props: [
'issue', 'issueLinkBase', 'list', 'issue', 'issueLinkBase', 'list',
......
...@@ -2,9 +2,6 @@ ...@@ -2,9 +2,6 @@
(() => { (() => {
const ModalStore = gl.issueBoards.ModalStore; const ModalStore = gl.issueBoards.ModalStore;
window.gl = window.gl || {};
window.gl.issueBoards = window.gl.issueBoards || {};
gl.issueBoards.ModalEmptyState = Vue.extend({ gl.issueBoards.ModalEmptyState = Vue.extend({
data() { data() {
return ModalStore.store; return ModalStore.store;
......
...@@ -3,9 +3,6 @@ ...@@ -3,9 +3,6 @@
(() => { (() => {
const ModalStore = gl.issueBoards.ModalStore; const ModalStore = gl.issueBoards.ModalStore;
window.gl = window.gl || {};
window.gl.issueBoards = window.gl.issueBoards || {};
gl.issueBoards.ModalFooter = Vue.extend({ gl.issueBoards.ModalFooter = Vue.extend({
data() { data() {
return ModalStore.store; return ModalStore.store;
......
...@@ -3,9 +3,6 @@ ...@@ -3,9 +3,6 @@
(() => { (() => {
const ModalStore = gl.issueBoards.ModalStore; const ModalStore = gl.issueBoards.ModalStore;
window.gl = window.gl || {};
window.gl.issueBoards = window.gl.issueBoards || {};
gl.issueBoards.IssuesModalHeader = Vue.extend({ gl.issueBoards.IssuesModalHeader = Vue.extend({
data() { data() {
return ModalStore.store; return ModalStore.store;
......
...@@ -6,9 +6,6 @@ ...@@ -6,9 +6,6 @@
(() => { (() => {
const ModalStore = gl.issueBoards.ModalStore; const ModalStore = gl.issueBoards.ModalStore;
window.gl = window.gl || {};
window.gl.issueBoards = window.gl.issueBoards || {};
gl.issueBoards.IssuesModal = Vue.extend({ gl.issueBoards.IssuesModal = Vue.extend({
props: [ props: [
'blankStateImage', 'newIssuePath', 'blankStateImage', 'newIssuePath',
...@@ -28,6 +25,9 @@ ...@@ -28,6 +25,9 @@
.then(() => { .then(() => {
this.loading = false; this.loading = false;
}); });
} else if (!this.showAddIssuesModal) {
this.issues = [];
this.selectedIssues = [];
} }
}, },
}, },
......
...@@ -5,9 +5,6 @@ ...@@ -5,9 +5,6 @@
let listMasonry; let listMasonry;
const ModalStore = gl.issueBoards.ModalStore; const ModalStore = gl.issueBoards.ModalStore;
window.gl = window.gl || {};
window.gl.issueBoards = window.gl.issueBoards || {};
gl.issueBoards.ModalList = Vue.extend({ gl.issueBoards.ModalList = Vue.extend({
data() { data() {
return ModalStore.store; return ModalStore.store;
......
/* global Vue */ /* global Vue */
(() => { (() => {
const ModalStore = gl.issueBoards.ModalStore; const ModalStore = gl.issueBoards.ModalStore;
const Store = gl.issueBoards.BoardsStore;
window.gl = window.gl || {};
window.gl.issueBoards = window.gl.issueBoards || {};
gl.issueBoards.ModalFooterListsDropdown = Vue.extend({ gl.issueBoards.ModalFooterListsDropdown = Vue.extend({
data() { data() {
return { return {
modal: ModalStore.store, modal: ModalStore.store,
state: Store.state, state: gl.issueBoards.BoardsStore.state,
}; };
}, },
computed: { computed: {
...@@ -18,11 +14,6 @@ ...@@ -18,11 +14,6 @@
return this.modal.selectedList; return this.modal.selectedList;
}, },
}, },
methods: {
selectList(list) {
this.modal.selectedList = list;
},
},
template: ` template: `
<div class="dropdown inline"> <div class="dropdown inline">
<button <button
...@@ -46,7 +37,7 @@ ...@@ -46,7 +37,7 @@
href="#" href="#"
role="button" role="button"
:class="{ 'is-active': list.id == selected.id }" :class="{ 'is-active': list.id == selected.id }"
@click="selectList(list)"> @click="modal.selectedList = list">
<span <span
class="dropdown-label-box" class="dropdown-label-box"
:style="{ backgroundColor: list.label.color }"> :style="{ backgroundColor: list.label.color }">
......
...@@ -2,9 +2,6 @@ ...@@ -2,9 +2,6 @@
(() => { (() => {
const ModalStore = gl.issueBoards.ModalStore; const ModalStore = gl.issueBoards.ModalStore;
window.gl = window.gl || {};
window.gl.issueBoards = window.gl.issueBoards || {};
gl.issueBoards.ModalTabs = Vue.extend({ gl.issueBoards.ModalTabs = Vue.extend({
data() { data() {
return ModalStore.store; return ModalStore.store;
......
(() => { (() => {
window.gl = window.gl || {};
window.gl.issueBoards = window.gl.issueBoards || {};
class ModalStore { class ModalStore {
constructor() { constructor() {
this.store = { this.store = {
......
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