|
@@ -17,7 +17,6 @@
|
|
|
*/
|
|
|
|
|
|
var App = require('app');
|
|
|
-var stringUtils = require('utils/string_utils');
|
|
|
|
|
|
/**
|
|
|
* this menu extended by other with modifying content and itemViewClass.template
|
|
@@ -31,14 +30,17 @@ App.MainMenuView = Em.CollectionView.extend({
|
|
|
{ label:Em.I18n.t('menu.item.dashboard'), routing:'dashboard', active:'active'},
|
|
|
{ label:Em.I18n.t('menu.item.heatmaps'), routing:'charts'},
|
|
|
{ label:Em.I18n.t('menu.item.services'), routing:'services'},
|
|
|
- { label:Em.I18n.t('menu.item.hosts'), routing:'hosts'},
|
|
|
- { label:Em.I18n.t('menu.item.jobs'), routing:'apps'}
|
|
|
+ { label:Em.I18n.t('menu.item.hosts'), routing:'hosts'}
|
|
|
];
|
|
|
|
|
|
if (App.supports.mirroring) {
|
|
|
result.push({ label:Em.I18n.t('menu.item.mirroring'), routing:'mirroring'});
|
|
|
}
|
|
|
|
|
|
+ if (!App.get('isHadoop2Stack')) {
|
|
|
+ result.push({ label:Em.I18n.t('menu.item.jobs'), routing:'apps'});
|
|
|
+ }
|
|
|
+
|
|
|
if (App.get('isAdmin')) {
|
|
|
result.push({ label:Em.I18n.t('menu.item.admin'), routing:'admin'});
|
|
|
}
|