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';
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;
......
......@@ -4,8 +4,8 @@ function isNewRepo() {
return Cookies.get('new_repo') === 'true';
}
const FeatureHelper = {
const UserFeatureHelper = {
isNewRepo,
};
export default FeatureHelper;
export default UserFeatureHelper;
......@@ -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,
......
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