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
86d28c47
Commit
86d28c47
authored
Oct 07, 2019
by
Kushal Pandya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initialize Vue Issuable Sidebar
parent
33741956
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
3 deletions
+12
-3
app/assets/javascripts/pages/projects/issues/show.js
app/assets/javascripts/pages/projects/issues/show.js
+6
-1
app/assets/javascripts/pages/projects/issues/show/index.js
app/assets/javascripts/pages/projects/issues/show/index.js
+3
-1
ee/app/assets/javascripts/pages/projects/issues/show/index.js
...pp/assets/javascripts/pages/projects/issues/show/index.js
+3
-1
No files found.
app/assets/javascripts/pages/projects/issues/show.js
View file @
86d28c47
...
@@ -5,6 +5,7 @@ import ZenMode from '~/zen_mode';
...
@@ -5,6 +5,7 @@ import ZenMode from '~/zen_mode';
import
'
~/notes/index
'
;
import
'
~/notes/index
'
;
import
initIssueableApp
from
'
~/issue_show
'
;
import
initIssueableApp
from
'
~/issue_show
'
;
import
initRelatedMergeRequestsApp
from
'
~/related_merge_requests
'
;
import
initRelatedMergeRequestsApp
from
'
~/related_merge_requests
'
;
import
initVueIssuableSidebarApp
from
'
~/issuable_sidebar/sidebar_bundle
'
;
export
default
function
()
{
export
default
function
()
{
initIssueableApp
();
initIssueableApp
();
...
@@ -12,5 +13,9 @@ export default function() {
...
@@ -12,5 +13,9 @@ export default function() {
new
Issue
();
// eslint-disable-line no-new
new
Issue
();
// eslint-disable-line no-new
new
ShortcutsIssuable
();
// eslint-disable-line no-new
new
ShortcutsIssuable
();
// eslint-disable-line no-new
new
ZenMode
();
// eslint-disable-line no-new
new
ZenMode
();
// eslint-disable-line no-new
if
(
gon
.
features
&&
gon
.
features
.
vueIssuableSidebar
)
{
initVueIssuableSidebarApp
();
}
else
{
initIssuableSidebar
();
initIssuableSidebar
();
}
}
}
app/assets/javascripts/pages/projects/issues/show/index.js
View file @
86d28c47
...
@@ -3,5 +3,7 @@ import initShow from '../show';
...
@@ -3,5 +3,7 @@ import initShow from '../show';
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
initShow
();
initShow
();
if
(
gon
.
features
&&
!
gon
.
features
.
vueIssuableSidebar
)
{
initSidebarBundle
();
initSidebarBundle
();
}
});
});
ee/app/assets/javascripts/pages/projects/issues/show/index.js
View file @
86d28c47
...
@@ -5,7 +5,9 @@ import UserCallout from '~/user_callout';
...
@@ -5,7 +5,9 @@ import UserCallout from '~/user_callout';
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
initShow
();
initShow
();
if
(
gon
.
features
&&
!
gon
.
features
.
vueIssuableSidebar
)
{
initSidebarBundle
();
initSidebarBundle
();
}
initRelatedIssues
();
initRelatedIssues
();
if
(
document
.
getElementById
(
'
js-design-management
'
))
{
if
(
document
.
getElementById
(
'
js-design-management
'
))
{
...
...
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