Commit 292af98e authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

ui: Exclude rebooting machines from network connect overlay

parent fe3e1a37
......@@ -693,7 +693,7 @@
get_connectable_vms: function() {
return storage.vms.filter(function(vm){
return !vm.in_error_state() && !vm.is_building();
return !vm.in_error_state() && !vm.is_building() && !vm.is_rebooting();
});
},
......@@ -1168,6 +1168,10 @@
return models.VM.BUILDING_STATES.indexOf(this.state()) > -1;
},
is_rebooting: function() {
return this.state() == 'REBOOT';
},
in_error_state: function() {
return this.state() === "ERROR"
},
......
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