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

Do not show labels tree if the tab is not active

This commit is contained in:
Daniel Molina 2016-04-14 15:59:21 +02:00
parent 08e345b380
commit a9e8e21e8d

View File

@ -503,8 +503,10 @@ define(function(require) {
if (that.labelsColumn && !SunstoneConfig.isTabEnabled("provision-tab")) {
if (SunstoneConfig.isTabEnabled(that.tabId)) {
LabelsUtils.insertLabelsMenu({'tabName': that.tabId});
LabelsUtils.insertLabelsDropdown(that.tabId);
if ($("#" + that.tabId).is(':visible')) {
LabelsUtils.insertLabelsMenu({'tabName': that.tabId});
LabelsUtils.insertLabelsDropdown(that.tabId);
}
}
}