You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by we...@apache.org on 2014/07/01 11:40:00 UTC

[3/4] git commit: updated refs/heads/4.3 to ba9ae0c

[UI] hide listHosts for stopped vm


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

Branch: refs/heads/4.3
Commit: 39cc82dbe85e7aae1677271e82e4224f42d305bd
Parents: 6fd419a
Author: Wei Zhou <w....@leaseweb.com>
Authored: Tue Jul 1 10:55:13 2014 +0200
Committer: Wei Zhou <w....@leaseweb.com>
Committed: Tue Jul 1 11:39:30 2014 +0200

----------------------------------------------------------------------
 ui/scripts/instances.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/39cc82db/ui/scripts/instances.js
----------------------------------------------------------------------
diff --git a/ui/scripts/instances.js b/ui/scripts/instances.js
index 8a13ef2..591cf4c 100644
--- a/ui/scripts/instances.js
+++ b/ui/scripts/instances.js
@@ -354,7 +354,7 @@
                     path: '_zone.hosts',
                     label: 'label.hosts',
                     preFilter: function(args) {
-                        return isAdmin();
+                        return (isAdmin() && (args.context.instances[0].hostid != null));
                     },
                     updateContext: function(args) {
                         var instance = args.context.instances[0];