summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/helpers
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2017-08-17 12:35:33 -0500
committerMike Greiling <mike@pixelcog.com>2017-08-17 12:35:33 -0500
commit53a7fde9318621c287888974980a87401392cba4 (patch)
treed4da7199a150f1dd65bee9db5b11c4aa81eb7c06 /app/assets/javascripts/helpers
parent705dbe6162017b20020c202194fabaeb475e4187 (diff)
downloadgitlab-ce-53a7fde9318621c287888974980a87401392cba4.tar.gz
use proper object notation and rename isNewRepo to isNewRepoEnabledrename-repo-enabled
Diffstat (limited to 'app/assets/javascripts/helpers')
-rw-r--r--app/assets/javascripts/helpers/user_feature_helper.js12
1 files changed, 4 insertions, 8 deletions
diff --git a/app/assets/javascripts/helpers/user_feature_helper.js b/app/assets/javascripts/helpers/user_feature_helper.js
index fcd8569819c..638118a5204 100644
--- a/app/assets/javascripts/helpers/user_feature_helper.js
+++ b/app/assets/javascripts/helpers/user_feature_helper.js
@@ -1,11 +1,7 @@
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;