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-primate.git


The following commit(s) were added to refs/heads/master by this push:
     new d26d341  listview: Hiding event checkboxes for users (#698)
d26d341 is described below

commit d26d3417cf3778983534c15b9971daafd832aad2
Author: davidjumani <[email protected]>
AuthorDate: Fri Sep 11 15:43:35 2020 +0530

    listview: Hiding event checkboxes for users (#698)
---
 src/components/view/ListView.vue | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/components/view/ListView.vue b/src/components/view/ListView.vue
index bc27abc..cb86d67 100644
--- a/src/components/view/ListView.vue
+++ b/src/components/view/ListView.vue
@@ -23,7 +23,8 @@
     :dataSource="items"
     :rowKey="(record, idx) => record.id || record.name || record.usageType || 
idx + '-' + Math.random()"
     :pagination="false"
-    :rowSelection="['vm', 'event', 'alert'].includes($route.name) ? 
{selectedRowKeys: selectedRowKeys, onChange: onSelectChange} : null"
+    :rowSelection="['vm', 'alert'].includes($route.name) || $route.name === 
'event' && $store.getters.userInfo.roletype === 'Admin'
+      ? {selectedRowKeys: selectedRowKeys, onChange: onSelectChange} : null"
     :rowClassName="getRowClassName"
     style="overflow-y: auto"
   >

Reply via email to