Commit ce92275f authored by Thomas Randolph's avatar Thomas Randolph

Fetch the MR Metadata when the MR Notes app loads

parent 7b46b28e
...@@ -58,6 +58,8 @@ export default () => { ...@@ -58,6 +58,8 @@ export default () => {
created() { created() {
this.setActiveTab(window.mrTabs.getCurrentAction()); this.setActiveTab(window.mrTabs.getCurrentAction());
this.setEndpoints(this.endpoints); this.setEndpoints(this.endpoints);
this.fetchMrMetadata();
}, },
mounted() { mounted() {
this.notesCountBadge = $('.issuable-details').find('.notes-tab .badge'); this.notesCountBadge = $('.issuable-details').find('.notes-tab .badge');
...@@ -69,7 +71,7 @@ export default () => { ...@@ -69,7 +71,7 @@ export default () => {
window.mrTabs.eventHub.$off('MergeRequestTabChange', this.setActiveTab); window.mrTabs.eventHub.$off('MergeRequestTabChange', this.setActiveTab);
}, },
methods: { methods: {
...mapActions(['setActiveTab', 'setEndpoints']), ...mapActions(['setActiveTab', 'setEndpoints', 'fetchMrMetadata']),
updateDiscussionTabCounter() { updateDiscussionTabCounter() {
this.notesCountBadge.text(this.discussionTabCounter); this.notesCountBadge.text(this.discussionTabCounter);
}, },
......
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