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

B #5434: Disable autorefresh (#1326)

(cherry picked from commit 861a63356ffc723f845095b18caf9e52150b09b2)
This commit is contained in:
Frederick Borges 2021-06-23 14:02:51 +02:00 committed by Tino Vazquez
parent 91ef3d0fe9
commit eebf4d30a6
No known key found for this signature in database
GPG Key ID: 14201E424D02047E
2 changed files with 36 additions and 29 deletions

View File

@ -931,7 +931,9 @@ define(function(require) {
};
var _autorefresh = function(tabName, info, contextTabId, context) {
_insertPanels(tabName, info, contextTabId, context, true);
// This code is disabled to forbid the autorefresh feature
//_insertPanels(tabName, info, contextTabId, context, true);
_insertPanels(tabName, info, contextTabId, context, false);
};

View File

@ -45,6 +45,11 @@ define(function (require) {
};
var _start = function (fireedgeToken="") {
/*
// This code is disabled to forbid the autorefresh feature
connection = STATUS.PROCESSING;
if (sunstone_fireedge_active && fireedgeToken != "" ){
@ -97,36 +102,36 @@ define(function (require) {
default:
break;
}
/*
// this code recreate the datatable for VM and HOST this call foundation()
var response = {};
response[object] = event_data.HOOK_MESSAGE[object];
var request = {
"request": {
"data": [response[object].ID],
"method": "show",
"resource": object
}
};
// update VM and HOST
var tab = $("#" + tab_id);
if(
Sunstone.getDataTable(tab_id) &&
Sunstone.getDataTable(tab_id).updateElement &&
typeof Sunstone.getDataTable(tab_id).updateElement === "function"
){
Sunstone.getDataTable(tab_id).updateElement(request, response);
// this code recreate the datatable for VM and HOST this call foundation()
var response = {};
response[object] = event_data.HOOK_MESSAGE[object];
var request = {
"request": {
"data": [response[object].ID],
"method": "show",
"resource": object
}
if (Sunstone.rightInfoVisible(tab) && event_data.HOOK_MESSAGE.RESOURCE_ID == Sunstone.rightInfoResourceId(tab)) {
callFunction(response);
}
if (event_data.HOOK_MESSAGE.STATE == "DONE"){
Sunstone.getDataTable(tab_id).waitingNodes();
Sunstone.runAction(object + ".list", {force: true});
}
*/
}
};
// update VM and HOST
var tab = $("#" + tab_id);
if(
Sunstone.getDataTable(tab_id) &&
Sunstone.getDataTable(tab_id).updateElement &&
typeof Sunstone.getDataTable(tab_id).updateElement === "function"
){
Sunstone.getDataTable(tab_id).updateElement(request, response);
}
if (Sunstone.rightInfoVisible(tab) && event_data.HOOK_MESSAGE.RESOURCE_ID == Sunstone.rightInfoResourceId(tab)) {
callFunction(response);
}
if (event_data.HOOK_MESSAGE.STATE == "DONE"){
Sunstone.getDataTable(tab_id).waitingNodes();
Sunstone.runAction(object + ".list", {force: true});
}
} */
});
// Close Socket when close browser or tab.