mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 03:42:52 +09:00
Bug #4193: Do not call user.refresh if the tab is not enabled
(cherry picked from commit fb93191400)
This commit is contained in:
1 parent
d09d1d37ab
commit
2a3e1e1cbd
1 file changed
+4
-1
@@ -25,6 +25,7 @@ define(function(require) {
|
||||
var Notifier = require('utils/notifier');
|
||||
var Locale = require('utils/locale');
|
||||
var UserCreation = require('tabs/users-tab/utils/user-creation');
|
||||
var Config = require('sunstone-config');
|
||||
|
||||
/*
|
||||
CONSTANTS
|
||||
@@ -92,7 +93,9 @@ define(function(require) {
|
||||
|
||||
Sunstone.getDialog(DIALOG_ID).hide();
|
||||
Sunstone.getDialog(DIALOG_ID).reset();
|
||||
Sunstone.runAction('User.refresh');
|
||||
if (Config.isTabEnabled("users-tab")){
|
||||
Sunstone.runAction('User.refresh');
|
||||
}
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user