cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t..@apache.org
Subject [08/50] [abbrv] git commit: updated refs/heads/marvin-refactor to 5ce2643
Date Sat, 30 Mar 2013 16:56:21 GMT
CLOUDSTACK-1838: cloudstack UI - volume page - listView, detailView - hide hypervisor field
when log in as regular-user/domain-admin.


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

Branch: refs/heads/marvin-refactor
Commit: a2709a21f824fcae9ededbe8b187a3cb654b108d
Parents: dffb65f
Author: Jessica Wang <jessica.wang@citrix.com>
Authored: Thu Mar 28 14:38:17 2013 -0700
Committer: Prasanna Santhanam <tsp@apache.org>
Committed: Sat Mar 30 22:21:52 2013 +0530

----------------------------------------------------------------------
 ui/scripts/storage.js |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/a2709a21/ui/scripts/storage.js
----------------------------------------------------------------------
diff --git a/ui/scripts/storage.js b/ui/scripts/storage.js
index 5c19bd0..54605e2 100644
--- a/ui/scripts/storage.js
+++ b/ui/scripts/storage.js
@@ -34,6 +34,12 @@
         listView: {
           id: 'volumes',
           label: 'label.volumes',
+					preFilter: function(args) {
+					  var hiddenFields = [];
+					  if(isAdmin() != true)
+					    hiddenFields.push('hypervisor');
+						return hiddenFields;
+					},
           fields: {
             name: { label: 'label.name' },
             type: { label: 'label.type' },
@@ -1113,7 +1119,7 @@
                     hiddenFields = [];
                   }
                   else {
-                    hiddenFields = ["storage"];
+                    hiddenFields = ['storage', 'hypervisor'];
                   }
                   return hiddenFields;
                 },


Mime
View raw message