This is an automated email from the ASF dual-hosted git repository.

rohit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/master by this push:
     new b6a861b  ui: add user information on the Event-View in the UI (#2826)
b6a861b is described below

commit b6a861b09b16f0be9a503171fb5042059b48622f
Author: Rafael Weingärtner <rafaelweingart...@gmail.com>
AuthorDate: Thu Aug 30 06:03:38 2018 -0300

    ui: add user information on the Event-View in the UI (#2826)
    
    For root/domain admins, adds the username column
---
 ui/scripts/events.js | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/ui/scripts/events.js b/ui/scripts/events.js
index 82550a9..948f881 100644
--- a/ui/scripts/events.js
+++ b/ui/scripts/events.js
@@ -49,6 +49,9 @@
                         account: {
                             label: 'label.account'
                         },
+                        username: {
+                            label: 'label.username'
+                        },
                         domain: {
                             label: 'label.domain'
                         },
@@ -331,6 +334,15 @@
                                 else
                                     return true;
                             }
+                        },
+                        username: {
+                            label: 'label.username',
+                            isHidden: function(args) {
+                                if (isAdmin() || isDomainAdmin())
+                                    return false;
+                                else
+                                    return true;
+                            }
                         }
                     },
 

Reply via email to