Revision 2c9bfad1 ui/static/snf/js/ui/web/ui_single_view.js
b/ui/static/snf/js/ui/web/ui_single_view.js | ||
---|---|---|
77 | 77 |
}, |
78 | 78 |
|
79 | 79 |
show_vm: function(vm) { |
80 |
console.log("SHOW", vm.id); |
|
80 | 81 |
this.current_vm_instance = vm; |
81 | 82 |
this.show_vm_menu(); |
82 | 83 |
this.show_current(); |
... | ... | |
104 | 105 |
}, |
105 | 106 |
|
106 | 107 |
update_current_vm: function() { |
107 |
storage.vms.stop_stats_update(); |
|
108 | 108 |
try { |
109 | 109 |
this.current_vm_instance = storage.vms.at(this.current_vm); |
110 |
this.current_vm_instance.do_update_stats = true; |
|
110 |
this.current_vm_instance.start_stats_update(); |
|
111 |
storage.vms.stop_stats_update([this.current_vm_instance]); |
|
111 | 112 |
} catch (err) { |
112 | 113 |
this.log.debug("Cannot select current vm instance for: {0}".format(this.current_vm)); |
113 | 114 |
this.current_vm_instance = undefined; |
Also available in: Unified diff