diff options
author | Jacob Schatz <jschatz1@gmail.com> | 2017-08-06 17:42:25 +0300 |
---|---|---|
committer | Jacob Schatz <jschatz1@gmail.com> | 2017-08-06 17:42:25 +0300 |
commit | 40347b7807c604424775b13949dd7bd159221570 (patch) | |
tree | bc84a2980e50e998cdff7f3c1f47dc963668e60d /app/assets/javascripts | |
parent | 417ec302822560fc2b7ba1acf935c8fb7b8192db (diff) |
Change name to user feature helper.
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r-- | app/assets/javascripts/dispatcher.js | 6 | ||||
-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.js | 1 |
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, |