blob: 7e9faefb00012539a119411f1f3ad3bf55d41e13 [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>
Yoshie Muranaka35080ac2020-01-17 15:38:57 -060018 </b-table>
19</template>
20
21<script>
Derick Montaguee2fd1562019-12-20 13:26:53 -060022import Checkmark20 from '@carbon/icons-vue/es/checkmark/20';
Surya Vde23ea22024-07-11 15:19:46 +053023import i18n from '@/i18n';
Yoshie Muranaka35080ac2020-01-17 15:38:57 -060024
25export default {
26 components: {
Derick Montague602e98a2020-10-21 16:20:00 -050027 Checkmark20,
Yoshie Muranaka35080ac2020-01-17 15:38:57 -060028 },
29 data() {
30 return {
31 items: [
32 {
Surya Vde23ea22024-07-11 15:19:46 +053033 description: i18n.global.t(
Ed Tanous81323992024-02-27 11:26:24 -080034 'pageUserManagement.tableRoles.configureComponentsManagedByThisService',
Yoshie Muranakaeaa04802020-02-28 13:21:27 -080035 ),
Yoshie Muranaka463a5702019-12-04 09:09:36 -080036 administrator: true,
Derick Montaguead01b202021-07-09 08:04:35 -050037 operator: true,
Yoshie Muranaka463a5702019-12-04 09:09:36 -080038 readonly: false,
Yoshie Muranaka35080ac2020-01-17 15:38:57 -060039 },
40 {
Surya Vde23ea22024-07-11 15:19:46 +053041 description: i18n.global.t(
Ed Tanous81323992024-02-27 11:26:24 -080042 'pageUserManagement.tableRoles.configureManagerResources',
Yoshie Muranakaeaa04802020-02-28 13:21:27 -080043 ),
Yoshie Muranaka463a5702019-12-04 09:09:36 -080044 administrator: true,
Yoshie Muranaka35080ac2020-01-17 15:38:57 -060045 operator: false,
Yoshie Muranaka463a5702019-12-04 09:09:36 -080046 readonly: false,
Yoshie Muranaka35080ac2020-01-17 15:38:57 -060047 },
48 {
Surya Vde23ea22024-07-11 15:19:46 +053049 description: i18n.global.t(
Ed Tanous81323992024-02-27 11:26:24 -080050 'pageUserManagement.tableRoles.updatePasswordForCurrentUserAccount',
Yoshie Muranakaeaa04802020-02-28 13:21:27 -080051 ),
Yoshie Muranaka463a5702019-12-04 09:09:36 -080052 administrator: true,
Yoshie Muranaka47165202020-10-27 14:56:50 -070053 operator: true,
54 readonly: true,
Yoshie Muranaka35080ac2020-01-17 15:38:57 -060055 },
56 {
Surya Vde23ea22024-07-11 15:19:46 +053057 description: i18n.global.t(
Ed Tanous81323992024-02-27 11:26:24 -080058 'pageUserManagement.tableRoles.configureUsersAndTheirAccounts',
Yoshie Muranakaeaa04802020-02-28 13:21:27 -080059 ),
Yoshie Muranaka463a5702019-12-04 09:09:36 -080060 administrator: true,
Yoshie Muranaka35080ac2020-01-17 15:38:57 -060061 operator: false,
Yoshie Muranaka463a5702019-12-04 09:09:36 -080062 readonly: false,
Yoshie Muranaka35080ac2020-01-17 15:38:57 -060063 },
64 {
Surya Vde23ea22024-07-11 15:19:46 +053065 description: i18n.global.t(
Ed Tanous81323992024-02-27 11:26:24 -080066 'pageUserManagement.tableRoles.logInToTheServiceAndReadResources',
Yoshie Muranakaeaa04802020-02-28 13:21:27 -080067 ),
Yoshie Muranaka463a5702019-12-04 09:09:36 -080068 administrator: true,
Yoshie Muranaka35080ac2020-01-17 15:38:57 -060069 operator: true,
Yoshie Muranaka463a5702019-12-04 09:09:36 -080070 readonly: true,
Yoshie Muranaka35080ac2020-01-17 15:38:57 -060071 },
Yoshie Muranaka35080ac2020-01-17 15:38:57 -060072 ],
73 fields: [
kirankumarb073bf966a2023-02-07 19:12:33 +053074 {
75 key: 'description',
Surya Vde23ea22024-07-11 15:19:46 +053076 label: i18n.global.t('pageUserManagement.tableRoles.privilege'),
kirankumarb073bf966a2023-02-07 19:12:33 +053077 },
78 {
79 key: 'administrator',
Surya Vde23ea22024-07-11 15:19:46 +053080 label: i18n.global.t('pageUserManagement.tableRoles.administrator'),
kirankumarb073bf966a2023-02-07 19:12:33 +053081 class: 'text-center',
82 },
83 {
84 key: 'operator',
Surya Vde23ea22024-07-11 15:19:46 +053085 label: i18n.global.t('pageUserManagement.tableRoles.operator'),
kirankumarb073bf966a2023-02-07 19:12:33 +053086 class: 'text-center',
87 },
88 {
89 key: 'readonly',
Surya Vde23ea22024-07-11 15:19:46 +053090 label: i18n.global.t('pageUserManagement.tableRoles.readOnly'),
kirankumarb073bf966a2023-02-07 19:12:33 +053091 class: 'text-center',
92 },
Derick Montague602e98a2020-10-21 16:20:00 -050093 ],
Yoshie Muranaka35080ac2020-01-17 15:38:57 -060094 };
Derick Montague602e98a2020-10-21 16:20:00 -050095 },
Yoshie Muranaka35080ac2020-01-17 15:38:57 -060096};
97</script>