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
e4e31028
Commit
e4e31028
authored
Nov 06, 2018
by
Kushal Pandya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Load refactored Epic app when cookie flag is true
parent
83982b92
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
ee/app/assets/javascripts/pages/groups/epics/show/index.js
ee/app/assets/javascripts/pages/groups/epics/show/index.js
+8
-2
ee/app/views/groups/epics/show.html.haml
ee/app/views/groups/epics/show.html.haml
+4
-1
No files found.
ee/app/assets/javascripts/pages/groups/epics/show/index.js
View file @
e4e31028
import
ZenMode
from
'
~/zen_mode
'
;
import
Cookies
from
'
js-cookie
'
;
import
initEpicShow
from
'
ee/epics/epic_show/epic_show_bundle
'
;
import
ShortcutsEpic
from
'
ee/behaviors/shortcuts/shortcuts_epic
'
;
import
initEpicApp
from
'
ee/epic/epic_bundle
'
;
import
'
~/notes/index
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
new
ZenMode
();
// eslint-disable-line no-new
initEpicShow
();
new
ShortcutsEpic
();
// eslint-disable-line no-new
if
(
Cookies
.
get
(
'
load_new_epic_app
'
)
===
'
true
'
)
{
initEpicApp
();
}
else
{
initEpicShow
();
new
ShortcutsEpic
();
// eslint-disable-line no-new
}
});
ee/app/views/groups/epics/show.html.haml
View file @
e4e31028
...
...
@@ -11,7 +11,10 @@
-
page_card_attributes
@epic
.
card_attributes
#epic-show-app
{
data:
epic_show_app_data
(
@epic
,
author_icon:
avatar_icon_for_user
(
@epic
.
author
),
initial:
issuable_initial_data
(
@epic
))
}
-
if
cookies
[
:load_new_epic_app
]
==
'true'
#epic-app-root
{
data:
epic_show_app_data
(
@epic
,
author_icon:
avatar_icon_for_user
(
@epic
.
author
),
initial:
issuable_initial_data
(
@epic
))
}
-
else
#epic-show-app
{
data:
epic_show_app_data
(
@epic
,
author_icon:
avatar_icon_for_user
(
@epic
.
author
),
initial:
issuable_initial_data
(
@epic
))
}
.content-block.emoji-block
.row
...
...
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