mirror of https://github.com/rancher/ui.git
parent
524069b154
commit
3663f446e1
|
|
@ -14,12 +14,13 @@ export default Controller.extend({
|
||||||
|
|
||||||
refreshTimer: null,
|
refreshTimer: null,
|
||||||
init() {
|
init() {
|
||||||
this._super(...arguments);
|
this._super(...arguments);
|
||||||
let cluster = this.get('cluster');
|
let cluster = this.get('cluster');
|
||||||
if(cluster.state!=="inactive"){
|
if(cluster.state==="inactive"){
|
||||||
this.send('cancel');
|
this.scheduleRefresh();
|
||||||
}
|
}else{
|
||||||
this.scheduleRefresh();
|
this.scheduleRefresh();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
willDestroyElement() {
|
willDestroyElement() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue