mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 03:42:52 +09:00
Bug #4193: Call isTabEnabled before a refresh action
(cherry picked from commit ff71ac1a30)
This commit is contained in:
1 parent
8408d40cfe
commit
207e711f85
1 file changed
+2
-1
@@ -18,6 +18,7 @@ define(function(require) {
|
||||
var Sunstone = require('sunstone');
|
||||
var Notifier = require('utils/notifier');
|
||||
var Locale = require('utils/locale');
|
||||
var Config = require('sunstone-config');
|
||||
|
||||
/*
|
||||
CONSTRUCTOR
|
||||
@@ -80,7 +81,7 @@ define(function(require) {
|
||||
var tab = $('#' + that.tabId);
|
||||
if (Sunstone.rightInfoVisible(tab)) {
|
||||
Sunstone.runAction(that.resourceStr + ".show", Sunstone.rightInfoResourceId(tab));
|
||||
} else {
|
||||
} else if (Config.isTabEnabled(that.tabId)) {
|
||||
Sunstone.getDataTable(that.tabId).waitingNodes();
|
||||
Sunstone.runAction(that.resourceStr + ".list", {force: true});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user