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
Boxiang Sun
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
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 @
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