mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-21 04:12:37 +09:00
Add scale information column in vms tab
This commit is contained in:
1 parent
2b83161bbd
commit
76612cb3f6
1 file changed
+11
-1
@@ -1442,6 +1442,7 @@ function updateServiceInfo(request,elem){
|
||||
<table id="datatable_service_vms_'+role.name+'" class="table datatable twelve">\
|
||||
<thead>\
|
||||
<tr>\
|
||||
<th></th>\
|
||||
<th class="check"><input type="checkbox" class="check_all" value=""></input></th>\
|
||||
<th>'+tr("ID")+'</th>\
|
||||
<th>'+tr("Owner")+'</th>\
|
||||
@@ -1603,7 +1604,16 @@ function updateServiceInfo(request,elem){
|
||||
$.each(role.nodes, function(){
|
||||
var vm_info = this.vm_info;
|
||||
if (vm_info) {
|
||||
vms.push(vMachineElementArray(vm_info));
|
||||
var info = [];
|
||||
if (this.scale_up) {
|
||||
info.push("<i class='icon-arrow-up'/>");
|
||||
} else if (this.disposed) {
|
||||
info.push("<i class='icon-arrow-down'/>");
|
||||
} else {
|
||||
info.push("");
|
||||
}
|
||||
|
||||
vms.push(info.concat(vMachineElementArray(vm_info)));
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user