cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From weiz...@apache.org
Subject [3/4] git commit: updated refs/heads/4.3 to ba9ae0c
Date Tue, 01 Jul 2014 09:40:00 GMT
[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.zhou@leaseweb.com>
Authored: Tue Jul 1 10:55:13 2014 +0200
Committer: Wei Zhou <w.zhou@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];


Mime
View raw message