summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/assets/javascripts/dispatcher.js6
-rw-r--r--app/assets/javascripts/helpers/user_feature_helper.js (renamed from app/assets/javascripts/helpers/feature_helper.js)4
-rw-r--r--app/assets/javascripts/repo/helpers/repo_helper.js1
3 files changed, 6 insertions, 5 deletions
diff --git a/app/assets/javascripts/dispatcher.js b/app/assets/javascripts/dispatcher.js
index eedcce877ba..8943741df01 100644
--- a/app/assets/javascripts/dispatcher.js
+++ b/app/assets/javascripts/dispatcher.js
@@ -76,7 +76,7 @@ import initNotes from './init_notes';
import initLegacyFilters from './init_legacy_filters';
import initIssuableSidebar from './init_issuable_sidebar';
import GpgBadges from './gpg_badges';
-import FeatureHelper from './helpers/feature_helper';
+import UserFeatureHelper from './helpers/user_feature_helper';
(function() {
var Dispatcher;
@@ -413,7 +413,7 @@ import FeatureHelper from './helpers/feature_helper';
case 'projects:tree:show':
shortcut_handler = new ShortcutsNavigation();
- if (FeatureHelper.isNewRepo()) break;
+ if (UserFeatureHelper.isNewRepo()) break;
new TreeView();
new BlobViewer();
@@ -433,7 +433,7 @@ import FeatureHelper from './helpers/feature_helper';
shortcut_handler = true;
break;
case 'projects:blob:show':
- if (FeatureHelper.isNewRepo()) break;
+ if (UserFeatureHelper.isNewRepo()) break;
new BlobViewer();
initBlob();
break;
diff --git a/app/assets/javascripts/helpers/feature_helper.js b/app/assets/javascripts/helpers/user_feature_helper.js
index 469b65ec4d8..fcd8569819c 100644
--- a/app/assets/javascripts/helpers/feature_helper.js
+++ b/app/assets/javascripts/helpers/user_feature_helper.js
@@ -4,8 +4,8 @@ function isNewRepo() {
return Cookies.get('new_repo') === 'true';
}
-const FeatureHelper = {
+const UserFeatureHelper = {
isNewRepo,
};
-export default FeatureHelper;
+export default UserFeatureHelper;
diff --git a/app/assets/javascripts/repo/helpers/repo_helper.js b/app/assets/javascripts/repo/helpers/repo_helper.js
index 00c55788d6f..68c1673b858 100644
--- a/app/assets/javascripts/repo/helpers/repo_helper.js
+++ b/app/assets/javascripts/repo/helpers/repo_helper.js
@@ -216,6 +216,7 @@ const RepoHelper = {
serializeRepoEntity(type, entity) {
const { url, name, icon, last_commit } = entity;
+ console.log('entity', JSON.stringify(entity));
return {
type,
name,