cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bfede...@apache.org
Subject git commit: Revert "CLOUDSTACK-483: Disable 'update' tab when host updates aren't supported"
Date Wed, 14 Nov 2012 18:41:15 GMT
Updated Branches:
  refs/heads/master 7f905cd94 -> d1fb2f763


Revert "CLOUDSTACK-483: Disable 'update' tab when host updates aren't supported"

Reverting because host update feature isn't supported under CS

This reverts commit 7f905cd94a273696d8f6d3fb405e7fee70998c6a.


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/d1fb2f76
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/d1fb2f76
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/d1fb2f76

Branch: refs/heads/master
Commit: d1fb2f763402eb71be8955a28f3defb15ede4258
Parents: 7f905cd
Author: Brian Federle <brian.federle@citrix.com>
Authored: Wed Nov 14 10:39:40 2012 -0800
Committer: Brian Federle <brian.federle@citrix.com>
Committed: Wed Nov 14 10:39:40 2012 -0800

----------------------------------------------------------------------
 ui/scripts/system.js |   27 ---------------------------
 1 files changed, 0 insertions(+), 27 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/d1fb2f76/ui/scripts/system.js
----------------------------------------------------------------------
diff --git a/ui/scripts/system.js b/ui/scripts/system.js
index 1f913f5..9e3932f 100644
--- a/ui/scripts/system.js
+++ b/ui/scripts/system.js
@@ -8421,33 +8421,6 @@
               }
 
             },
-            tabFilter: function(args) {
-              var hiddenTabs = [];
-              var hostUpdatesEnabled = false;
-              var host = args.context.hosts[0];
-
-              if (isAdmin()) {
-                // Host updates are only supported on XenServer and when host.updates.enabled
is true;
-                $.ajax({
-                  url: createURL('listConfigurations'),
-                  data: {
-                    name: 'host.updates.enable'
-                  },
-                  async: false,
-                  success: function(json) {
-                    var config = json.listconfigurationsresponse.configuration[0];
-
-                    hostUpdatesEnabled = config.value == 'true' ? true : false;
-                  }
-                });
-
-                if (!hostUpdatesEnabled || host.hypervisor != 'XenServer') {
-                  hiddenTabs.push('hostUpdates');
-                }
-              }
-
-              return hiddenTabs;
-            },
             tabs: {
               details: {
                 title: 'label.details',


Mime
View raw message