mirror of https://github.com/rancher/ui.git
24 lines
625 B
JavaScript
24 lines
625 B
JavaScript
import Ember from 'ember';
|
|
|
|
export default Ember.Controller.extend({
|
|
application: Ember.inject.controller(),
|
|
settings: Ember.inject.service(),
|
|
projects: Ember.inject.service(),
|
|
currentPath: Ember.computed.alias('application.currentPath'),
|
|
error: null,
|
|
|
|
// These are set by project/route and project/controller
|
|
hasKubernetes: false,
|
|
hasSystem: false,
|
|
hasVm: Ember.computed.alias('settings.hasVm'),
|
|
|
|
init() {
|
|
this._super();
|
|
this.k8sChanged();
|
|
},
|
|
|
|
k8sChanged: function() {
|
|
this.set('hasKubernetes', !!this.get('projects.current.kubernetes'));
|
|
}.observes('projects.current.kubernetes'),
|
|
});
|