You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by da...@apache.org on 2018/04/02 21:55:22 UTC
[cloudstack] branch 4.11 updated: make Broadcast- and IsolationURI
visible to admin (#2520)
This is an automated email from the ASF dual-hosted git repository.
dahn pushed a commit to branch 4.11
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/4.11 by this push:
new 23ae676 make Broadcast- and IsolationURI visible to admin (#2520)
23ae676 is described below
commit 23ae6762bdcd5920bc8a97372c1a75e7f860a161
Author: dahn <da...@gmail.com>
AuthorDate: Mon Apr 2 21:55:18 2018 +0000
make Broadcast- and IsolationURI visible to admin (#2520)
---
ui/scripts/instances.js | 17 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a/ui/scripts/instances.js b/ui/scripts/instances.js
index ab075b0..84d6003 100644
--- a/ui/scripts/instances.js
+++ b/ui/scripts/instances.js
@@ -2835,6 +2835,16 @@
}
}
},
+ preFilter: function(args) {
+ var hiddenFields;
+ if (isAdmin()) {
+ hiddenFields = [];
+ } else {
+ hiddenFields = ["broadcasturi", "isolationuri"];
+ }
+
+ return hiddenFields;
+ },
fields: [{
id: {
label: 'label.id'
@@ -2871,7 +2881,12 @@
ip6cidr: {
label: 'label.ipv6.CIDR'
},
-
+ broadcasturi : {
+ label: 'label.broadcast.uri'
+ },
+ isolationuri : {
+ label: 'label.isolation.uri'
+ },
isdefault: {
label: 'label.is.default',
converter: function(data) {
--
To stop receiving notification emails like this one, please contact
dahn@apache.org.