Commit 40347b78 authored by Jacob Schatz's avatar Jacob Schatz

Change name to user feature helper.

parent 417ec302
...@@ -76,7 +76,7 @@ import initNotes from './init_notes'; ...@@ -76,7 +76,7 @@ import initNotes from './init_notes';
import initLegacyFilters from './init_legacy_filters'; import initLegacyFilters from './init_legacy_filters';
import initIssuableSidebar from './init_issuable_sidebar'; import initIssuableSidebar from './init_issuable_sidebar';
import GpgBadges from './gpg_badges'; import GpgBadges from './gpg_badges';
import FeatureHelper from './helpers/feature_helper'; import UserFeatureHelper from './helpers/user_feature_helper';
(function() { (function() {
var Dispatcher; var Dispatcher;
...@@ -413,7 +413,7 @@ import FeatureHelper from './helpers/feature_helper'; ...@@ -413,7 +413,7 @@ import FeatureHelper from './helpers/feature_helper';
case 'projects:tree:show': case 'projects:tree:show':
shortcut_handler = new ShortcutsNavigation(); shortcut_handler = new ShortcutsNavigation();
if (FeatureHelper.isNewRepo()) break; if (UserFeatureHelper.isNewRepo()) break;
new TreeView(); new TreeView();
new BlobViewer(); new BlobViewer();
...@@ -433,7 +433,7 @@ import FeatureHelper from './helpers/feature_helper'; ...@@ -433,7 +433,7 @@ import FeatureHelper from './helpers/feature_helper';
shortcut_handler = true; shortcut_handler = true;
break; break;
case 'projects:blob:show': case 'projects:blob:show':
if (FeatureHelper.isNewRepo()) break; if (UserFeatureHelper.isNewRepo()) break;
new BlobViewer(); new BlobViewer();
initBlob(); initBlob();
break; break;
......
...@@ -4,8 +4,8 @@ function isNewRepo() { ...@@ -4,8 +4,8 @@ function isNewRepo() {
return Cookies.get('new_repo') === 'true'; return Cookies.get('new_repo') === 'true';
} }
const FeatureHelper = { const UserFeatureHelper = {
isNewRepo, isNewRepo,
}; };
export default FeatureHelper; export default UserFeatureHelper;
...@@ -216,6 +216,7 @@ const RepoHelper = { ...@@ -216,6 +216,7 @@ const RepoHelper = {
serializeRepoEntity(type, entity) { serializeRepoEntity(type, entity) {
const { url, name, icon, last_commit } = entity; const { url, name, icon, last_commit } = entity;
console.log('entity', JSON.stringify(entity));
return { return {
type, type,
name, name,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment