mirror of https://github.com/rancher/ui.git
Watch mesos for templateBase
This commit is contained in:
parent
e5c12b6adf
commit
5cf437164c
|
|
@ -11,8 +11,7 @@ export default Ember.Mixin.create({
|
||||||
uniqueCatalogIds : null,
|
uniqueCatalogIds : null,
|
||||||
|
|
||||||
templateBase: function() {
|
templateBase: function() {
|
||||||
if ( this.get('projects.current.kubernetes') )
|
if ( this.get('projects.current.kubernetes') ) {
|
||||||
{
|
|
||||||
return 'kubernetes';
|
return 'kubernetes';
|
||||||
} else if ( this.get('projects.current.swarm') ) {
|
} else if ( this.get('projects.current.swarm') ) {
|
||||||
return 'swarm';
|
return 'swarm';
|
||||||
|
|
@ -21,7 +20,7 @@ export default Ember.Mixin.create({
|
||||||
} else {
|
} else {
|
||||||
return 'cattle';
|
return 'cattle';
|
||||||
}
|
}
|
||||||
}.property('projects.current.{kubernetes,swarm}'),
|
}.property('projects.current.{kubernetes,swarm,mesos}'),
|
||||||
|
|
||||||
uniqKeys: function (data, name) {
|
uniqKeys: function (data, name) {
|
||||||
let out = data.map((item) => item[name]);
|
let out = data.map((item) => item[name]);
|
||||||
|
|
|
||||||
|
|
@ -285,24 +285,33 @@ const navTree = [
|
||||||
icon: 'icon icon-folder-open',
|
icon: 'icon icon-folder-open',
|
||||||
route: 'admin-tab.audit-logs',
|
route: 'admin-tab.audit-logs',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
id: 'admin-processes',
|
|
||||||
localizedLabel: 'nav.admin.processes',
|
|
||||||
icon: 'icon icon-processes',
|
|
||||||
route: 'admin-tab.processes',
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
id: 'admin-accounts',
|
id: 'admin-accounts',
|
||||||
localizedLabel: 'nav.admin.accounts',
|
localizedLabel: 'nav.admin.accounts',
|
||||||
icon: 'icon icon-users',
|
icon: 'icon icon-users',
|
||||||
route: 'admin-tab.accounts',
|
route: 'admin-tab.accounts',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: 'admin-processes',
|
||||||
|
localizedLabel: 'nav.admin.processes',
|
||||||
|
icon: 'icon icon-processes',
|
||||||
|
route: 'admin-tab.processes',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
divider: true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
id: 'admin-access',
|
id: 'admin-access',
|
||||||
localizedLabel: 'nav.admin.access',
|
localizedLabel: 'nav.admin.access',
|
||||||
icon: 'icon icon-key',
|
icon: 'icon icon-key',
|
||||||
route: 'admin-tab.auth',
|
route: 'admin-tab.auth',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: 'admin-ha',
|
||||||
|
localizedLabel: 'nav.admin.ha',
|
||||||
|
icon: 'icon icon-umbrella',
|
||||||
|
route: 'admin-tab.ha',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
id: 'admin-machine',
|
id: 'admin-machine',
|
||||||
localizedLabel: 'nav.admin.machine',
|
localizedLabel: 'nav.admin.machine',
|
||||||
|
|
@ -315,12 +324,6 @@ const navTree = [
|
||||||
icon: 'icon icon-network',
|
icon: 'icon icon-network',
|
||||||
route: 'admin-tab.settings',
|
route: 'admin-tab.settings',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
id: 'admin-ha',
|
|
||||||
localizedLabel: 'nav.admin.ha',
|
|
||||||
icon: 'icon icon-umbrella',
|
|
||||||
route: 'admin-tab.ha',
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "ui",
|
"name": "ui",
|
||||||
"version": "1.1.3",
|
"version": "1.1.4",
|
||||||
"private": true,
|
"private": true,
|
||||||
"directories": {
|
"directories": {
|
||||||
"doc": "doc",
|
"doc": "doc",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue