blob: 7aa1dc8e9505620f27203cb68ee9ec5fb9c8748b [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>
27import Checkmark20 from "@carbon/icons-vue/es/checkmark/20";
28
29export default {
30 components: {
31 Checkmark20
32 },
33 data() {
34 return {
35 items: [
36 {
37 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 {
44 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 {
51 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 {
58 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 {
65 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 {
72 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 {
79 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 {
86 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 {
93 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: [
101 { key: "description", label: "" },
Yoshie Muranaka463a5702019-12-04 09:09:36 -0800102 { key: "administrator", label: "Administrator", class: "text-center" },
Yoshie Muranaka35080ac2020-01-17 15:38:57 -0600103 { key: "operator", label: "Operator", class: "text-center" },
Yoshie Muranaka463a5702019-12-04 09:09:36 -0800104 { key: "readonly", label: "ReadOnly", class: "text-center" },
Yoshie Muranaka35080ac2020-01-17 15:38:57 -0600105 { key: "noaccess", label: "NoAccess", class: "text-center" }
106 ]
107 };
108 }
109};
110</script>