Yoshie Muranaka | 35080ac | 2020-01-17 15:38:57 -0600 | [diff] [blame] | 1 | <template> |
| 2 | <b-table bordered small head-variant="dark" :items="items" :fields="fields"> |
Yoshie Muranaka | 463a570 | 2019-12-04 09:09:36 -0800 | [diff] [blame] | 3 | <template v-slot:cell(administrator)="data"> |
Yoshie Muranaka | 35080ac | 2020-01-17 15:38:57 -0600 | [diff] [blame] | 4 | <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 Muranaka | 463a570 | 2019-12-04 09:09:36 -0800 | [diff] [blame] | 13 | <template v-slot:cell(readonly)="data"> |
Yoshie Muranaka | 35080ac | 2020-01-17 15:38:57 -0600 | [diff] [blame] | 14 | <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 Montague | e2fd156 | 2019-12-20 13:26:53 -0600 | [diff] [blame] | 27 | import Checkmark20 from '@carbon/icons-vue/es/checkmark/20'; |
Yoshie Muranaka | 35080ac | 2020-01-17 15:38:57 -0600 | [diff] [blame] | 28 | |
| 29 | export default { |
| 30 | components: { |
| 31 | Checkmark20 |
| 32 | }, |
| 33 | data() { |
| 34 | return { |
| 35 | items: [ |
| 36 | { |
Derick Montague | e2fd156 | 2019-12-20 13:26:53 -0600 | [diff] [blame] | 37 | description: 'Configure components managed by this service', |
Yoshie Muranaka | 463a570 | 2019-12-04 09:09:36 -0800 | [diff] [blame] | 38 | administrator: true, |
Yoshie Muranaka | 35080ac | 2020-01-17 15:38:57 -0600 | [diff] [blame] | 39 | operator: false, |
Yoshie Muranaka | 463a570 | 2019-12-04 09:09:36 -0800 | [diff] [blame] | 40 | readonly: false, |
Yoshie Muranaka | 35080ac | 2020-01-17 15:38:57 -0600 | [diff] [blame] | 41 | noaccess: false |
| 42 | }, |
| 43 | { |
Derick Montague | e2fd156 | 2019-12-20 13:26:53 -0600 | [diff] [blame] | 44 | description: 'Configure manager resources', |
Yoshie Muranaka | 463a570 | 2019-12-04 09:09:36 -0800 | [diff] [blame] | 45 | administrator: true, |
Yoshie Muranaka | 35080ac | 2020-01-17 15:38:57 -0600 | [diff] [blame] | 46 | operator: false, |
Yoshie Muranaka | 463a570 | 2019-12-04 09:09:36 -0800 | [diff] [blame] | 47 | readonly: false, |
Yoshie Muranaka | 35080ac | 2020-01-17 15:38:57 -0600 | [diff] [blame] | 48 | noaccess: false |
| 49 | }, |
| 50 | { |
Derick Montague | e2fd156 | 2019-12-20 13:26:53 -0600 | [diff] [blame] | 51 | description: 'Update password for current user account', |
Yoshie Muranaka | 463a570 | 2019-12-04 09:09:36 -0800 | [diff] [blame] | 52 | 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 Muranaka | 35080ac | 2020-01-17 15:38:57 -0600 | [diff] [blame] | 55 | noaccess: false |
| 56 | }, |
| 57 | { |
Derick Montague | e2fd156 | 2019-12-20 13:26:53 -0600 | [diff] [blame] | 58 | description: 'Configure users and their accounts', |
Yoshie Muranaka | 463a570 | 2019-12-04 09:09:36 -0800 | [diff] [blame] | 59 | administrator: true, |
Yoshie Muranaka | 35080ac | 2020-01-17 15:38:57 -0600 | [diff] [blame] | 60 | operator: false, |
Yoshie Muranaka | 463a570 | 2019-12-04 09:09:36 -0800 | [diff] [blame] | 61 | readonly: false, |
Yoshie Muranaka | 35080ac | 2020-01-17 15:38:57 -0600 | [diff] [blame] | 62 | noaccess: false |
| 63 | }, |
| 64 | { |
Derick Montague | e2fd156 | 2019-12-20 13:26:53 -0600 | [diff] [blame] | 65 | description: 'Log in to the service and read resources', |
Yoshie Muranaka | 463a570 | 2019-12-04 09:09:36 -0800 | [diff] [blame] | 66 | administrator: true, |
Yoshie Muranaka | 35080ac | 2020-01-17 15:38:57 -0600 | [diff] [blame] | 67 | operator: true, |
Yoshie Muranaka | 463a570 | 2019-12-04 09:09:36 -0800 | [diff] [blame] | 68 | readonly: true, |
Yoshie Muranaka | 35080ac | 2020-01-17 15:38:57 -0600 | [diff] [blame] | 69 | noaccess: false |
| 70 | }, |
| 71 | { |
Derick Montague | e2fd156 | 2019-12-20 13:26:53 -0600 | [diff] [blame] | 72 | description: 'IPMI access point', |
Yoshie Muranaka | 463a570 | 2019-12-04 09:09:36 -0800 | [diff] [blame] | 73 | administrator: true, |
Yoshie Muranaka | 35080ac | 2020-01-17 15:38:57 -0600 | [diff] [blame] | 74 | operator: true, |
Yoshie Muranaka | 463a570 | 2019-12-04 09:09:36 -0800 | [diff] [blame] | 75 | readonly: true, |
| 76 | noaccess: false |
Yoshie Muranaka | 35080ac | 2020-01-17 15:38:57 -0600 | [diff] [blame] | 77 | }, |
| 78 | { |
Derick Montague | e2fd156 | 2019-12-20 13:26:53 -0600 | [diff] [blame] | 79 | description: 'Redfish access point', |
Yoshie Muranaka | 463a570 | 2019-12-04 09:09:36 -0800 | [diff] [blame] | 80 | administrator: true, |
Yoshie Muranaka | 35080ac | 2020-01-17 15:38:57 -0600 | [diff] [blame] | 81 | operator: true, |
Yoshie Muranaka | 463a570 | 2019-12-04 09:09:36 -0800 | [diff] [blame] | 82 | readonly: true, |
Yoshie Muranaka | 35080ac | 2020-01-17 15:38:57 -0600 | [diff] [blame] | 83 | noaccess: false |
| 84 | }, |
| 85 | { |
Derick Montague | e2fd156 | 2019-12-20 13:26:53 -0600 | [diff] [blame] | 86 | description: 'SSH access point', |
Yoshie Muranaka | 463a570 | 2019-12-04 09:09:36 -0800 | [diff] [blame] | 87 | administrator: true, |
Yoshie Muranaka | 35080ac | 2020-01-17 15:38:57 -0600 | [diff] [blame] | 88 | operator: false, |
Yoshie Muranaka | 463a570 | 2019-12-04 09:09:36 -0800 | [diff] [blame] | 89 | readonly: false, |
Yoshie Muranaka | 35080ac | 2020-01-17 15:38:57 -0600 | [diff] [blame] | 90 | noaccess: false |
| 91 | }, |
| 92 | { |
Derick Montague | e2fd156 | 2019-12-20 13:26:53 -0600 | [diff] [blame] | 93 | description: 'WebUI access point', |
Yoshie Muranaka | 463a570 | 2019-12-04 09:09:36 -0800 | [diff] [blame] | 94 | administrator: true, |
Yoshie Muranaka | 35080ac | 2020-01-17 15:38:57 -0600 | [diff] [blame] | 95 | operator: true, |
Yoshie Muranaka | 463a570 | 2019-12-04 09:09:36 -0800 | [diff] [blame] | 96 | readonly: true, |
Yoshie Muranaka | 35080ac | 2020-01-17 15:38:57 -0600 | [diff] [blame] | 97 | noaccess: false |
| 98 | } |
| 99 | ], |
| 100 | fields: [ |
Derick Montague | e2fd156 | 2019-12-20 13:26:53 -0600 | [diff] [blame] | 101 | { 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 Muranaka | 35080ac | 2020-01-17 15:38:57 -0600 | [diff] [blame] | 106 | ] |
| 107 | }; |
| 108 | } |
| 109 | }; |
| 110 | </script> |