mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
Bug #3338: Generate host graphs when the tab is clicked
(cherry picked from commit 5baa08f057a07992b0498f268b4b61d9bd60bede)
This commit is contained in:
parent
66cba3841f
commit
31f2f805fb
@ -210,6 +210,7 @@ var host_actions = {
|
||||
updateHostElement(request, response);
|
||||
if (Sunstone.rightInfoVisible($("#hosts-tab"))) {
|
||||
updateHostInfo(request, response);
|
||||
$(".right-info-tabs > dd.active > a", "#hosts-tab").trigger("click");
|
||||
}
|
||||
},
|
||||
error: onError
|
||||
@ -1042,8 +1043,10 @@ function updateHostInfo(request,host){
|
||||
|
||||
//pop up panel while we retrieve the graphs
|
||||
|
||||
Sunstone.runAction("Host.monitor",host_info.ID,
|
||||
{monitor_resources : "HOST_SHARE/CPU_USAGE,HOST_SHARE/USED_CPU,HOST_SHARE/MAX_CPU,HOST_SHARE/MEM_USAGE,HOST_SHARE/USED_MEM,HOST_SHARE/MAX_MEM"});
|
||||
$("[href='#host_monitoring_tab']").on("click", function(){
|
||||
Sunstone.runAction("Host.monitor",host_info.ID,
|
||||
{monitor_resources : "HOST_SHARE/CPU_USAGE,HOST_SHARE/USED_CPU,HOST_SHARE/MAX_CPU,HOST_SHARE/MEM_USAGE,HOST_SHARE/USED_MEM,HOST_SHARE/MAX_MEM"});
|
||||
});
|
||||
}
|
||||
|
||||
//Prepares the host creation dialog
|
||||
|
Loading…
x
Reference in New Issue
Block a user