blob: cbdec353af741c4effae236b7eb7e9a05b464ca2 [file] [log] [blame]
Yoshie Muranaka35080ac2020-01-17 15:38:57 -06001<template>
Sukanya Pandeyfde429e2020-09-14 20:48:39 +05302 <b-table stacked="sm" hover small :items="items" :fields="fields">
Derick Montague602e98a2020-10-21 16:20:00 -05003 <template #cell(administrator)="data">
Yoshie Muranaka35080ac2020-01-17 15:38:57 -06004 <template v-if="data.value">
Derick Montague09e45cd2020-01-23 15:45:57 -06005 <checkmark20 />
Yoshie Muranaka35080ac2020-01-17 15:38:57 -06006 </template>
7 </template>
Derick Montague602e98a2020-10-21 16:20:00 -05008 <template #cell(operator)="data">
Yoshie Muranaka35080ac2020-01-17 15:38:57 -06009 <template v-if="data.value">
Derick Montague09e45cd2020-01-23 15:45:57 -060010 <checkmark20 />
Yoshie Muranaka35080ac2020-01-17 15:38:57 -060011 </template>
12 </template>
Derick Montague602e98a2020-10-21 16:20:00 -050013 <template #cell(readonly)="data">
Yoshie Muranaka35080ac2020-01-17 15:38:57 -060014 <template v-if="data.value">
Derick Montague09e45cd2020-01-23 15:45:57 -060015 <checkmark20 />
Yoshie Muranaka35080ac2020-01-17 15:38:57 -060016 </template>
17 </template>
Derick Montague602e98a2020-10-21 16:20:00 -050018 <template #cell(noaccess)="data">
Yoshie Muranaka35080ac2020-01-17 15:38:57 -060019 <template v-if="data.value">
Derick Montague09e45cd2020-01-23 15:45:57 -060020 <checkmark20 />
Yoshie Muranaka35080ac2020-01-17 15:38:57 -060021 </template>
22 </template>
23 </b-table>
24</template>
25
26<script>
Derick Montaguee2fd1562019-12-20 13:26:53 -060027import Checkmark20 from '@carbon/icons-vue/es/checkmark/20';
Yoshie Muranaka35080ac2020-01-17 15:38:57 -060028
29export default {
30 components: {
Derick Montague602e98a2020-10-21 16:20:00 -050031 Checkmark20,
Yoshie Muranaka35080ac2020-01-17 15:38:57 -060032 },
33 data() {
34 return {
35 items: [
36 {
Yoshie Muranakaeaa04802020-02-28 13:21:27 -080037 description: this.$t(
Sandeepa Singhb4406162021-07-26 15:05:39 +053038 'pageUserManagement.tableRoles.configureComponentsManagedByThisService'
Yoshie Muranakaeaa04802020-02-28 13:21:27 -080039 ),
Yoshie Muranaka463a5702019-12-04 09:09:36 -080040 administrator: true,
Derick Montaguead01b202021-07-09 08:04:35 -050041 operator: true,
Yoshie Muranaka463a5702019-12-04 09:09:36 -080042 readonly: false,
Derick Montague602e98a2020-10-21 16:20:00 -050043 noaccess: false,
Yoshie Muranaka35080ac2020-01-17 15:38:57 -060044 },
45 {
Yoshie Muranakaeaa04802020-02-28 13:21:27 -080046 description: this.$t(
Sandeepa Singhb4406162021-07-26 15:05:39 +053047 'pageUserManagement.tableRoles.configureManagerResources'
Yoshie Muranakaeaa04802020-02-28 13:21:27 -080048 ),
Yoshie Muranaka463a5702019-12-04 09:09:36 -080049 administrator: true,
Yoshie Muranaka35080ac2020-01-17 15:38:57 -060050 operator: false,
Yoshie Muranaka463a5702019-12-04 09:09:36 -080051 readonly: false,
Derick Montague602e98a2020-10-21 16:20:00 -050052 noaccess: false,
Yoshie Muranaka35080ac2020-01-17 15:38:57 -060053 },
54 {
Yoshie Muranakaeaa04802020-02-28 13:21:27 -080055 description: this.$t(
Sandeepa Singhb4406162021-07-26 15:05:39 +053056 'pageUserManagement.tableRoles.updatePasswordForCurrentUserAccount'
Yoshie Muranakaeaa04802020-02-28 13:21:27 -080057 ),
Yoshie Muranaka463a5702019-12-04 09:09:36 -080058 administrator: true,
Yoshie Muranaka47165202020-10-27 14:56:50 -070059 operator: true,
60 readonly: true,
Derick Montague602e98a2020-10-21 16:20:00 -050061 noaccess: false,
Yoshie Muranaka35080ac2020-01-17 15:38:57 -060062 },
63 {
Yoshie Muranakaeaa04802020-02-28 13:21:27 -080064 description: this.$t(
Sandeepa Singhb4406162021-07-26 15:05:39 +053065 'pageUserManagement.tableRoles.configureUsersAndTheirAccounts'
Yoshie Muranakaeaa04802020-02-28 13:21:27 -080066 ),
Yoshie Muranaka463a5702019-12-04 09:09:36 -080067 administrator: true,
Yoshie Muranaka35080ac2020-01-17 15:38:57 -060068 operator: false,
Yoshie Muranaka463a5702019-12-04 09:09:36 -080069 readonly: false,
Derick Montague602e98a2020-10-21 16:20:00 -050070 noaccess: false,
Yoshie Muranaka35080ac2020-01-17 15:38:57 -060071 },
72 {
Yoshie Muranakaeaa04802020-02-28 13:21:27 -080073 description: this.$t(
Sandeepa Singhb4406162021-07-26 15:05:39 +053074 'pageUserManagement.tableRoles.logInToTheServiceAndReadResources'
Yoshie Muranakaeaa04802020-02-28 13:21:27 -080075 ),
Yoshie Muranaka463a5702019-12-04 09:09:36 -080076 administrator: true,
Yoshie Muranaka35080ac2020-01-17 15:38:57 -060077 operator: true,
Yoshie Muranaka463a5702019-12-04 09:09:36 -080078 readonly: true,
Derick Montague602e98a2020-10-21 16:20:00 -050079 noaccess: false,
Yoshie Muranaka35080ac2020-01-17 15:38:57 -060080 },
Yoshie Muranaka35080ac2020-01-17 15:38:57 -060081 ],
82 fields: [
kirankumarb073bf966a2023-02-07 19:12:33 +053083 {
84 key: 'description',
85 label: this.$t('pageUserManagement.tableRoles.privilege'),
86 },
87 {
88 key: 'administrator',
89 label: this.$t('pageUserManagement.tableRoles.administrator'),
90 class: 'text-center',
91 },
92 {
93 key: 'operator',
94 label: this.$t('pageUserManagement.tableRoles.operator'),
95 class: 'text-center',
96 },
97 {
98 key: 'readonly',
99 label: this.$t('pageUserManagement.tableRoles.readOnly'),
100 class: 'text-center',
101 },
102 {
103 key: 'noaccess',
104 label: this.$t('pageUserManagement.tableRoles.noAccess'),
105 class: 'text-center',
106 },
Derick Montague602e98a2020-10-21 16:20:00 -0500107 ],
Yoshie Muranaka35080ac2020-01-17 15:38:57 -0600108 };
Derick Montague602e98a2020-10-21 16:20:00 -0500109 },
Yoshie Muranaka35080ac2020-01-17 15:38:57 -0600110};
111</script>