1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-24 21:34:01 +03:00

Bug #4193: Do not call user.refresh if the tab is not enabled

This commit is contained in:
Carlos Martín 2015-11-24 17:39:22 +01:00
parent a9ee5ed912
commit fb93191400

View File

@ -25,6 +25,7 @@ define(function(require) {
var Notifier = require('utils/notifier'); var Notifier = require('utils/notifier');
var Locale = require('utils/locale'); var Locale = require('utils/locale');
var UserCreation = require('tabs/users-tab/utils/user-creation'); var UserCreation = require('tabs/users-tab/utils/user-creation');
var Config = require('sunstone-config');
/* /*
CONSTANTS CONSTANTS
@ -92,7 +93,9 @@ define(function(require) {
Sunstone.getDialog(DIALOG_ID).hide(); Sunstone.getDialog(DIALOG_ID).hide();
Sunstone.getDialog(DIALOG_ID).reset(); Sunstone.getDialog(DIALOG_ID).reset();
Sunstone.runAction('User.refresh'); if (Config.isTabEnabled("users-tab")){
Sunstone.runAction('User.refresh');
}
return false; return false;
}); });