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
0
Merge Requests
0
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
Jérome Perrin
gitlab-ce
Commits
45c8c17e
Commit
45c8c17e
authored
Aug 18, 2017
by
Phil Hughes
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'rename-repo-enabled' into 'master'
Updates for proper obj notation. See merge request !13430
parents
8fadba44
53a7fde9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
10 deletions
+6
-10
app/assets/javascripts/dispatcher.js
app/assets/javascripts/dispatcher.js
+2
-2
app/assets/javascripts/helpers/user_feature_helper.js
app/assets/javascripts/helpers/user_feature_helper.js
+4
-8
No files found.
app/assets/javascripts/dispatcher.js
View file @
45c8c17e
...
@@ -414,7 +414,7 @@ import initChangesDropdown from './init_changes_dropdown';
...
@@ -414,7 +414,7 @@ import initChangesDropdown from './init_changes_dropdown';
case
'
projects:tree:show
'
:
case
'
projects:tree:show
'
:
shortcut_handler
=
new
ShortcutsNavigation
();
shortcut_handler
=
new
ShortcutsNavigation
();
if
(
UserFeatureHelper
.
isNewRepo
())
break
;
if
(
UserFeatureHelper
.
isNewRepo
Enabled
())
break
;
new
TreeView
();
new
TreeView
();
new
BlobViewer
();
new
BlobViewer
();
...
@@ -434,7 +434,7 @@ import initChangesDropdown from './init_changes_dropdown';
...
@@ -434,7 +434,7 @@ import initChangesDropdown from './init_changes_dropdown';
shortcut_handler
=
true
;
shortcut_handler
=
true
;
break
;
break
;
case
'
projects:blob:show
'
:
case
'
projects:blob:show
'
:
if
(
UserFeatureHelper
.
isNewRepo
())
break
;
if
(
UserFeatureHelper
.
isNewRepo
Enabled
())
break
;
new
BlobViewer
();
new
BlobViewer
();
initBlob
();
initBlob
();
break
;
break
;
...
...
app/assets/javascripts/helpers/user_feature_helper.js
View file @
45c8c17e
import
Cookies
from
'
js-cookie
'
;
import
Cookies
from
'
js-cookie
'
;
function
isNewRepo
()
{
export
default
{
return
Cookies
.
get
(
'
new_repo
'
)
===
'
true
'
;
isNewRepoEnabled
()
{
}
return
Cookies
.
get
(
'
new_repo
'
)
===
'
true
'
;
},
const
UserFeatureHelper
=
{
isNewRepo
,
};
};
export
default
UserFeatureHelper
;
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