BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
53a7fde9
Commit
53a7fde9
authored
Aug 17, 2017
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use proper object notation and rename isNewRepo to isNewRepoEnabled
parent
705dbe61
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
10 deletions
+6
-10
dispatcher.js
app/assets/javascripts/dispatcher.js
+2
-2
user_feature_helper.js
app/assets/javascripts/helpers/user_feature_helper.js
+4
-8
No files found.
app/assets/javascripts/dispatcher.js
View file @
53a7fde9
...
...
@@ -408,7 +408,7 @@ import UserFeatureHelper from './helpers/user_feature_helper';
case
'projects:tree:show'
:
shortcut_handler
=
new
ShortcutsNavigation
();
if
(
UserFeatureHelper
.
isNewRepo
())
break
;
if
(
UserFeatureHelper
.
isNewRepo
Enabled
())
break
;
new
TreeView
();
new
BlobViewer
();
...
...
@@ -428,7 +428,7 @@ import UserFeatureHelper from './helpers/user_feature_helper';
shortcut_handler
=
true
;
break
;
case
'projects:blob:show'
:
if
(
UserFeatureHelper
.
isNewRepo
())
break
;
if
(
UserFeatureHelper
.
isNewRepo
Enabled
())
break
;
new
BlobViewer
();
initBlob
();
break
;
...
...
app/assets/javascripts/helpers/user_feature_helper.js
View file @
53a7fde9
import
Cookies
from
'js-cookie'
;
function
isNewRepo
()
{
return
Cookies
.
get
(
'new_repo'
)
===
'true'
;
}
const
UserFeatureHelper
=
{
isNewRepo
,
export
default
{
isNewRepoEnabled
()
{
return
Cookies
.
get
(
'new_repo'
)
===
'true'
;
},
};
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