1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-16 22:50:10 +03:00

F #2410: VM autorefresh (#2466)

This commit is contained in:
Abel Coronado 2018-10-03 18:25:46 +02:00 committed by Tino Vázquez
parent bc4378105b
commit 3db8adea77
5 changed files with 14 additions and 0 deletions

View File

@ -122,6 +122,10 @@ define(function(require) {
return _config['user_config']["table_order"];
},
"autorefreshInfo": function(tabName) {
return _config['view']['tabs'][tabName]['autorefresh_info'] || 10000;
},
"provision": {
"dashboard": {
"isEnabled": function(widget) {

View File

@ -122,6 +122,7 @@ define(function(require) {
$(context).off("click", "#import_vcenter_images");
$(context).on("click", "#import_vcenter_images", function(){
that.vCenterImages.import(context);
$("#images-tabrefresh_buttons button").click();
return false;
});

View File

@ -116,6 +116,7 @@ define(function(require) {
$(context).off("click", "#import_vcenter_templates");
$(context).on("click", "#import_vcenter_templates", function(){
that.vCenterTemplates.import(context);
$("#templates-tabrefresh_buttons button").click();
return false;
});

View File

@ -45,6 +45,13 @@ define(function(require) {
var RESOURCE = "VM";
var XML_ROOT = "VM";
setInterval(function() {
var tab = $('#' + TAB_ID);
if (Sunstone.rightInfoVisible(tab)){
$("#vms-tabrefresh_buttons button").click();
}
}, Config.autorefreshInfo("vms-tab"));
/*
CONSTRUCTOR
*/

View File

@ -115,6 +115,7 @@ define(function(require) {
$(context).off("click", "#import_vcenter_networks");
$(context).on("click", "#import_vcenter_networks", function(){
that.vCenterNetworks.import(context);
$("#vnets-tabrefresh_buttons button").click();
return false;
});