blob: b40196646ba78e5cc574ff944f7e9b5f81f99c37 [file] [log] [blame]
Yoshie Muranaka35080ac2020-01-17 15:38:57 -06001<template>
2 <b-table bordered small head-variant="dark" :items="items" :fields="fields">
Yoshie Muranaka463a5702019-12-04 09:09:36 -08003 <template v-slot:cell(administrator)="data">
Yoshie Muranaka35080ac2020-01-17 15:38:57 -06004 <template v-if="data.value">
5 <Checkmark20 />
6 </template>
7 </template>
8 <template v-slot:cell(operator)="data">
9 <template v-if="data.value">
10 <Checkmark20 />
11 </template>
12 </template>
Yoshie Muranaka463a5702019-12-04 09:09:36 -080013 <template v-slot:cell(readonly)="data">
Yoshie Muranaka35080ac2020-01-17 15:38:57 -060014 <template v-if="data.value">
15 <Checkmark20 />
16 </template>
17 </template>
18 <template v-slot:cell(noaccess)="data">
19 <template v-if="data.value">
20 <Checkmark20 />
21 </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: {
31 Checkmark20
32 },
33 data() {
34 return {
35 items: [
36 {
Derick Montaguee2fd1562019-12-20 13:26:53 -060037 description: 'Configure components managed by this service',
Yoshie Muranaka463a5702019-12-04 09:09:36 -080038 administrator: true,
Yoshie Muranaka35080ac2020-01-17 15:38:57 -060039 operator: false,
Yoshie Muranaka463a5702019-12-04 09:09:36 -080040 readonly: false,
Yoshie Muranaka35080ac2020-01-17 15:38:57 -060041 noaccess: false
42 },
43 {
Derick Montaguee2fd1562019-12-20 13:26:53 -060044 description: 'Configure manager resources',
Yoshie Muranaka463a5702019-12-04 09:09:36 -080045 administrator: true,
Yoshie Muranaka35080ac2020-01-17 15:38:57 -060046 operator: false,
Yoshie Muranaka463a5702019-12-04 09:09:36 -080047 readonly: false,
Yoshie Muranaka35080ac2020-01-17 15:38:57 -060048 noaccess: false
49 },
50 {
Derick Montaguee2fd1562019-12-20 13:26:53 -060051 description: 'Update password for current user account',
Yoshie Muranaka463a5702019-12-04 09:09:36 -080052 administrator: true,
53 operator: false, // TODO Set to true when profile page added
54 readonly: false, // TODO Set to true when profile page added
Yoshie Muranaka35080ac2020-01-17 15:38:57 -060055 noaccess: false
56 },
57 {
Derick Montaguee2fd1562019-12-20 13:26:53 -060058 description: 'Configure users and their accounts',
Yoshie Muranaka463a5702019-12-04 09:09:36 -080059 administrator: true,
Yoshie Muranaka35080ac2020-01-17 15:38:57 -060060 operator: false,
Yoshie Muranaka463a5702019-12-04 09:09:36 -080061 readonly: false,
Yoshie Muranaka35080ac2020-01-17 15:38:57 -060062 noaccess: false
63 },
64 {
Derick Montaguee2fd1562019-12-20 13:26:53 -060065 description: 'Log in to the service and read resources',
Yoshie Muranaka463a5702019-12-04 09:09:36 -080066 administrator: true,
Yoshie Muranaka35080ac2020-01-17 15:38:57 -060067 operator: true,
Yoshie Muranaka463a5702019-12-04 09:09:36 -080068 readonly: true,
Yoshie Muranaka35080ac2020-01-17 15:38:57 -060069 noaccess: false
70 },
71 {
Derick Montaguee2fd1562019-12-20 13:26:53 -060072 description: 'IPMI access point',
Yoshie Muranaka463a5702019-12-04 09:09:36 -080073 administrator: true,
Yoshie Muranaka35080ac2020-01-17 15:38:57 -060074 operator: true,
Yoshie Muranaka463a5702019-12-04 09:09:36 -080075 readonly: true,
76 noaccess: false
Yoshie Muranaka35080ac2020-01-17 15:38:57 -060077 },
78 {
Derick Montaguee2fd1562019-12-20 13:26:53 -060079 description: 'Redfish access point',
Yoshie Muranaka463a5702019-12-04 09:09:36 -080080 administrator: true,
Yoshie Muranaka35080ac2020-01-17 15:38:57 -060081 operator: true,
Yoshie Muranaka463a5702019-12-04 09:09:36 -080082 readonly: true,
Yoshie Muranaka35080ac2020-01-17 15:38:57 -060083 noaccess: false
84 },
85 {
Derick Montaguee2fd1562019-12-20 13:26:53 -060086 description: 'SSH access point',
Yoshie Muranaka463a5702019-12-04 09:09:36 -080087 administrator: true,
Yoshie Muranaka35080ac2020-01-17 15:38:57 -060088 operator: false,
Yoshie Muranaka463a5702019-12-04 09:09:36 -080089 readonly: false,
Yoshie Muranaka35080ac2020-01-17 15:38:57 -060090 noaccess: false
91 },
92 {
Derick Montaguee2fd1562019-12-20 13:26:53 -060093 description: 'WebUI access point',
Yoshie Muranaka463a5702019-12-04 09:09:36 -080094 administrator: true,
Yoshie Muranaka35080ac2020-01-17 15:38:57 -060095 operator: true,
Yoshie Muranaka463a5702019-12-04 09:09:36 -080096 readonly: true,
Yoshie Muranaka35080ac2020-01-17 15:38:57 -060097 noaccess: false
98 }
99 ],
100 fields: [
Derick Montaguee2fd1562019-12-20 13:26:53 -0600101 { key: 'description', label: '' },
102 { key: 'administrator', label: 'Administrator', class: 'text-center' },
103 { key: 'operator', label: 'Operator', class: 'text-center' },
104 { key: 'readonly', label: 'ReadOnly', class: 'text-center' },
105 { key: 'noaccess', label: 'NoAccess', class: 'text-center' }
Yoshie Muranaka35080ac2020-01-17 15:38:57 -0600106 ]
107 };
108 }
109};
110</script>