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

[04/50] [abbrv] git commit: updated refs/heads/rbac to 929fbab

Instances UI: Don't show 'view host' link if VM is stopped


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

Branch: refs/heads/rbac
Commit: 4215d697530f75d1c8d4343a3e519e1d70b39efd
Parents: 6282e8e
Author: Brian Federle <br...@citrix.com>
Authored: Tue Jan 14 11:07:44 2014 -0800
Committer: Brian Federle <br...@citrix.com>
Committed: Tue Jan 14 11:09:09 2014 -0800

----------------------------------------------------------------------
 ui/scripts/instances.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/4215d697/ui/scripts/instances.js
----------------------------------------------------------------------
diff --git a/ui/scripts/instances.js b/ui/scripts/instances.js
index d4a5482..05c5f79 100644
--- a/ui/scripts/instances.js
+++ b/ui/scripts/instances.js
@@ -355,9 +355,9 @@
                     label: 'label.affinity.groups'
                 }, {
                     path: '_zone.hosts',
-                    label: 'label.hosts',
+                    label: 'label.host',
                     preFilter: function(args) {
-                        return isAdmin();
+                        return isAdmin() && args.context.instances[0].hostid;
                     },
                     updateContext: function(args) {
                         var instance = args.context.instances[0];