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
72803742
Commit
72803742
authored
Mar 01, 2018
by
Clement Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve mount epic to explicitly not mount if element is not found
parent
50c66197
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
ee/app/assets/javascripts/sidebar/mount_sidebar.js
ee/app/assets/javascripts/sidebar/mount_sidebar.js
+4
-1
No files found.
ee/app/assets/javascripts/sidebar/mount_sidebar.js
View file @
72803742
...
@@ -25,7 +25,10 @@ function mountWeightComponent(mediator) {
...
@@ -25,7 +25,10 @@ function mountWeightComponent(mediator) {
function
mountEpic
()
{
function
mountEpic
()
{
const
el
=
document
.
querySelector
(
'
#js-vue-sidebar-item-epic
'
);
const
el
=
document
.
querySelector
(
'
#js-vue-sidebar-item-epic
'
);
return
new
Vue
({
if
(
!
el
)
return
;
// eslint-disable-next-line no-new
new
Vue
({
el
,
el
,
components
:
{
components
:
{
SidebarItemEpic
,
SidebarItemEpic
,
...
...
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