Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
ce92275f
Commit
ce92275f
authored
Mar 16, 2021
by
Thomas Randolph
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fetch the MR Metadata when the MR Notes app loads
parent
7b46b28e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
app/assets/javascripts/mr_notes/init_notes.js
app/assets/javascripts/mr_notes/init_notes.js
+3
-1
No files found.
app/assets/javascripts/mr_notes/init_notes.js
View file @
ce92275f
...
...
@@ -58,6 +58,8 @@ export default () => {
created
()
{
this
.
setActiveTab
(
window
.
mrTabs
.
getCurrentAction
());
this
.
setEndpoints
(
this
.
endpoints
);
this
.
fetchMrMetadata
();
},
mounted
()
{
this
.
notesCountBadge
=
$
(
'
.issuable-details
'
).
find
(
'
.notes-tab .badge
'
);
...
...
@@ -69,7 +71,7 @@ export default () => {
window
.
mrTabs
.
eventHub
.
$off
(
'
MergeRequestTabChange
'
,
this
.
setActiveTab
);
},
methods
:
{
...
mapActions
([
'
setActiveTab
'
,
'
setEndpoints
'
]),
...
mapActions
([
'
setActiveTab
'
,
'
setEndpoints
'
,
'
fetchMrMetadata
'
]),
updateDiscussionTabCounter
()
{
this
.
notesCountBadge
.
text
(
this
.
discussionTabCounter
);
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment