summaryrefslogtreecommitdiff
path: root/app/assets/javascripts
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2019-02-20 14:51:06 +0000
committerPhil Hughes <me@iamphill.com>2019-02-20 14:51:06 +0000
commit810a8b78b6ab09ea0259f5b6487d9ff2499d3caf (patch)
treebea1f98fd41cfbfa3bb2fb396921c40c0ab9cf44 /app/assets/javascripts
parentd7db2232f0cdb901f50d44f0887997ab9bb426b4 (diff)
downloadgitlab-ce-810a8b78b6ab09ea0259f5b6487d9ff2499d3caf.tar.gz
CE backport of design-management-issue-tab
Backports template and Vue changes from https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/9632 to CE
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r--app/assets/javascripts/notes/components/notes_app.vue7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/assets/javascripts/notes/components/notes_app.vue b/app/assets/javascripts/notes/components/notes_app.vue
index a63571edcea..8d3f6d902f8 100644
--- a/app/assets/javascripts/notes/components/notes_app.vue
+++ b/app/assets/javascripts/notes/components/notes_app.vue
@@ -90,8 +90,15 @@ export default {
this.fetchNotes();
}
},
+ allDiscussions() {
+ if (this.discussonsCount) {
+ this.discussonsCount.textContent = this.allDiscussions.length;
+ }
+ },
},
created() {
+ this.discussonsCount = document.querySelector('.js-discussions-count');
+
this.setNotesData(this.notesData);
this.setNoteableData(this.noteableData);
this.setUserData(this.userData);