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
5a89ed1d
Commit
5a89ed1d
authored
Oct 16, 2020
by
Tim Zallmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Unwrap also DomContentLoaded for MR Show
parent
e5f71cf7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
20 deletions
+16
-20
app/assets/javascripts/pages/projects/merge_requests/show/index.js
...s/javascripts/pages/projects/merge_requests/show/index.js
+7
-9
ee/app/assets/javascripts/pages/projects/merge_requests/show/index.js
...s/javascripts/pages/projects/merge_requests/show/index.js
+9
-11
No files found.
app/assets/javascripts/pages/projects/merge_requests/show/index.js
View file @
5a89ed1d
...
@@ -5,12 +5,10 @@ import initShow from '../init_merge_request_show';
...
@@ -5,12 +5,10 @@ import initShow from '../init_merge_request_show';
import
initIssuableHeaderWarning
from
'
~/vue_shared/components/issuable/init_issuable_header_warning
'
;
import
initIssuableHeaderWarning
from
'
~/vue_shared/components/issuable/init_issuable_header_warning
'
;
import
store
from
'
~/mr_notes/stores
'
;
import
store
from
'
~/mr_notes/stores
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
initShow
();
initShow
();
if
(
gon
.
features
&&
!
gon
.
features
.
vueIssuableSidebar
)
{
if
(
gon
.
features
&&
!
gon
.
features
.
vueIssuableSidebar
)
{
initSidebarBundle
();
initSidebarBundle
();
}
}
initMrNotes
();
initMrNotes
();
initReviewBar
();
initReviewBar
();
initIssuableHeaderWarning
(
store
);
initIssuableHeaderWarning
(
store
);
});
ee/app/assets/javascripts/pages/projects/merge_requests/show/index.js
View file @
5a89ed1d
...
@@ -6,16 +6,14 @@ import store from '~/mr_notes/stores';
...
@@ -6,16 +6,14 @@ import store from '~/mr_notes/stores';
import
initIssuableHeaderWarning
from
'
~/vue_shared/components/issuable/init_issuable_header_warning
'
;
import
initIssuableHeaderWarning
from
'
~/vue_shared/components/issuable/init_issuable_header_warning
'
;
import
initShow
from
'
~/pages/projects/merge_requests/init_merge_request_show
'
;
import
initShow
from
'
~/pages/projects/merge_requests/init_merge_request_show
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
initShow
();
initShow
();
if
(
gon
.
features
&&
!
gon
.
features
.
vueIssuableSidebar
)
{
if
(
gon
.
features
&&
!
gon
.
features
.
vueIssuableSidebar
)
{
initSidebarBundle
();
initSidebarBundle
();
}
}
initMrNotes
();
initMrNotes
();
initReviewBar
();
initReviewBar
();
initIssuableHeaderWarning
(
store
);
initIssuableHeaderWarning
(
store
);
const
assigneeDropdown
=
document
.
querySelector
(
'
.js-sidebar-assignee-dropdown
'
);
const
assigneeDropdown
=
document
.
querySelector
(
'
.js-sidebar-assignee-dropdown
'
);
if
(
assigneeDropdown
)
trackShowInviteMemberLink
(
assigneeDropdown
);
if
(
assigneeDropdown
)
trackShowInviteMemberLink
(
assigneeDropdown
);
});
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