summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/boards/components/modal/index.js.es6
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/boards/components/modal/index.js.es6')
-rw-r--r--app/assets/javascripts/boards/components/modal/index.js.es610
1 files changed, 8 insertions, 2 deletions
diff --git a/app/assets/javascripts/boards/components/modal/index.js.es6 b/app/assets/javascripts/boards/components/modal/index.js.es6
index dd40075ac47..4536f5cfe6f 100644
--- a/app/assets/javascripts/boards/components/modal/index.js.es6
+++ b/app/assets/javascripts/boards/components/modal/index.js.es6
@@ -10,6 +10,7 @@
gl.issueBoards.IssuesModal = Vue.extend({
props: [
'blankStateImage', 'newIssuePath', 'bulkUpdatePath', 'issueLinkBase',
+ 'rootPath',
],
data() {
return ModalStore.store;
@@ -57,6 +58,10 @@
});
this.loadingNewPage = false;
+
+ if (!this.issuesCount) {
+ this.issuesCount = this.issues.length;
+ }
});
},
},
@@ -66,7 +71,7 @@
return this.selectedIssues.length > 0;
}
- return this.issues.length > 0;
+ return this.issuesCount > 0;
},
},
components: {
@@ -83,9 +88,10 @@
<modal-header></modal-header>
<modal-list
:issue-link-base="issueLinkBase"
+ :root-path="rootPath"
v-if="!loading && showList"></modal-list>
<empty-state
- v-if="(!loading && issues.length === 0) || (activeTab === 'selected' && selectedIssues.length === 0)"
+ v-if="(!loading && issuesCount === 0) || (activeTab === 'selected' && selectedIssues.length === 0)"
:image="blankStateImage"
:new-issue-path="newIssuePath"></empty-state>
<section