Yoshie Muranaka | 56ee769 | 2020-05-28 13:28:29 -0700 | [diff] [blame] | 1 | <template> |
Sandeepa Singh | 7affc52 | 2021-07-06 16:29:10 +0530 | [diff] [blame] | 2 | <page-section :section-title="$t('pageInventory.system')"> |
SurenNeware | 307382e | 2020-07-27 20:45:14 +0530 | [diff] [blame] | 3 | <b-table |
| 4 | responsive="md" |
Sukanya Pandey | fde429e | 2020-09-14 20:48:39 +0530 | [diff] [blame] | 5 | hover |
SurenNeware | 307382e | 2020-07-27 20:45:14 +0530 | [diff] [blame] | 6 | show-empty |
| 7 | :items="systems" |
| 8 | :fields="fields" |
| 9 | :empty-text="$t('global.table.emptyMessage')" |
Kenneth Fullbright | 4105785 | 2021-12-27 16:19:37 -0600 | [diff] [blame] | 10 | :busy="isBusy" |
SurenNeware | 307382e | 2020-07-27 20:45:14 +0530 | [diff] [blame] | 11 | > |
Yoshie Muranaka | 56ee769 | 2020-05-28 13:28:29 -0700 | [diff] [blame] | 12 | <!-- Expand chevron icon --> |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 13 | <template #cell(expandRow)="row"> |
Dixsie Wolmers | 8313376 | 2020-07-15 08:45:19 -0500 | [diff] [blame] | 14 | <b-button |
| 15 | variant="link" |
| 16 | data-test-id="hardwareStatus-button-expandSystem" |
Dixsie Wolmers | 30f11f8 | 2020-11-10 16:07:56 -0600 | [diff] [blame] | 17 | :title="expandRowLabel" |
| 18 | class="btn-icon-only" |
Dixsie Wolmers | b53e086 | 2020-09-08 14:13:38 -0500 | [diff] [blame] | 19 | @click="toggleRowDetails(row)" |
Dixsie Wolmers | 8313376 | 2020-07-15 08:45:19 -0500 | [diff] [blame] | 20 | > |
Dixsie Wolmers | 30f11f8 | 2020-11-10 16:07:56 -0600 | [diff] [blame] | 21 | <icon-chevron /> |
SurenNeware | 6e2cb97 | 2020-12-24 20:58:16 +0530 | [diff] [blame] | 22 | <span class="sr-only">{{ expandRowLabel }}</span> |
Yoshie Muranaka | 56ee769 | 2020-05-28 13:28:29 -0700 | [diff] [blame] | 23 | </b-button> |
| 24 | </template> |
| 25 | |
| 26 | <!-- Health --> |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 27 | <template #cell(health)="{ value }"> |
Yoshie Muranaka | 56ee769 | 2020-05-28 13:28:29 -0700 | [diff] [blame] | 28 | <status-icon :status="statusIcon(value)" /> |
| 29 | {{ value }} |
| 30 | </template> |
| 31 | |
Sukanya Pandey | eb4cef3 | 2021-04-09 15:40:27 +0530 | [diff] [blame] | 32 | <template #cell(locationIndicatorActive)="{ item }"> |
| 33 | <b-form-checkbox |
Sukanya Pandey | 0538896 | 2021-06-10 15:35:21 +0530 | [diff] [blame] | 34 | id="identifyLedSwitchSystem" |
Sukanya Pandey | eb4cef3 | 2021-04-09 15:40:27 +0530 | [diff] [blame] | 35 | v-model="item.locationIndicatorActive" |
Sukanya Pandey | 0538896 | 2021-06-10 15:35:21 +0530 | [diff] [blame] | 36 | data-test-id="inventorySystem-toggle-identifyLed" |
Sukanya Pandey | eb4cef3 | 2021-04-09 15:40:27 +0530 | [diff] [blame] | 37 | switch |
| 38 | @change="toggleIdentifyLedSwitch" |
| 39 | > |
Sukanya Pandey | 0538896 | 2021-06-10 15:35:21 +0530 | [diff] [blame] | 40 | <span v-if="item.locationIndicatorActive"> |
| 41 | {{ $t('global.status.on') }} |
| 42 | </span> |
| 43 | <span v-else>{{ $t('global.status.off') }}</span> |
Sukanya Pandey | eb4cef3 | 2021-04-09 15:40:27 +0530 | [diff] [blame] | 44 | </b-form-checkbox> |
| 45 | </template> |
| 46 | |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 47 | <template #row-details="{ item }"> |
Yoshie Muranaka | 56ee769 | 2020-05-28 13:28:29 -0700 | [diff] [blame] | 48 | <b-container fluid> |
| 49 | <b-row> |
Sukanya Pandey | eb4cef3 | 2021-04-09 15:40:27 +0530 | [diff] [blame] | 50 | <b-col class="mt-2" sm="6"> |
Yoshie Muranaka | 56ee769 | 2020-05-28 13:28:29 -0700 | [diff] [blame] | 51 | <dl> |
Sukanya Pandey | eb4cef3 | 2021-04-09 15:40:27 +0530 | [diff] [blame] | 52 | <!-- Serial number --> |
Sandeepa Singh | 7affc52 | 2021-07-06 16:29:10 +0530 | [diff] [blame] | 53 | <dt>{{ $t('pageInventory.table.serialNumber') }}:</dt> |
Dixsie Wolmers | 9726f9a | 2021-09-07 15:33:16 -0500 | [diff] [blame] | 54 | <dd>{{ dataFormatter(item.serialNumber) }}</dd> |
Sukanya Pandey | eb4cef3 | 2021-04-09 15:40:27 +0530 | [diff] [blame] | 55 | <!-- Model --> |
Sandeepa Singh | 7affc52 | 2021-07-06 16:29:10 +0530 | [diff] [blame] | 56 | <dt>{{ $t('pageInventory.table.model') }}:</dt> |
Dixsie Wolmers | 9726f9a | 2021-09-07 15:33:16 -0500 | [diff] [blame] | 57 | <dd>{{ dataFormatter(item.model) }}</dd> |
Yoshie Muranaka | 56ee769 | 2020-05-28 13:28:29 -0700 | [diff] [blame] | 58 | <!-- Asset tag --> |
Sandeepa Singh | 7affc52 | 2021-07-06 16:29:10 +0530 | [diff] [blame] | 59 | <dt>{{ $t('pageInventory.table.assetTag') }}:</dt> |
Sukanya Pandey | eb4cef3 | 2021-04-09 15:40:27 +0530 | [diff] [blame] | 60 | <dd class="mb-2"> |
Dixsie Wolmers | 9726f9a | 2021-09-07 15:33:16 -0500 | [diff] [blame] | 61 | {{ dataFormatter(item.assetTag) }} |
Sukanya Pandey | eb4cef3 | 2021-04-09 15:40:27 +0530 | [diff] [blame] | 62 | </dd> |
| 63 | </dl> |
| 64 | </b-col> |
| 65 | <b-col class="mt-2" sm="6"> |
| 66 | <dl> |
| 67 | <!-- Status state --> |
Sandeepa Singh | 7affc52 | 2021-07-06 16:29:10 +0530 | [diff] [blame] | 68 | <dt>{{ $t('pageInventory.table.statusState') }}:</dt> |
Dixsie Wolmers | 9726f9a | 2021-09-07 15:33:16 -0500 | [diff] [blame] | 69 | <dd>{{ dataFormatter(item.statusState) }}</dd> |
Sukanya Pandey | eb4cef3 | 2021-04-09 15:40:27 +0530 | [diff] [blame] | 70 | <!-- Power state --> |
Sandeepa Singh | 7affc52 | 2021-07-06 16:29:10 +0530 | [diff] [blame] | 71 | <dt>{{ $t('pageInventory.table.power') }}:</dt> |
Dixsie Wolmers | 9726f9a | 2021-09-07 15:33:16 -0500 | [diff] [blame] | 72 | <dd>{{ dataFormatter(item.powerState) }}</dd> |
Sukanya Pandey | eb4cef3 | 2021-04-09 15:40:27 +0530 | [diff] [blame] | 73 | <!-- Health rollup --> |
Sandeepa Singh | 7affc52 | 2021-07-06 16:29:10 +0530 | [diff] [blame] | 74 | <dt>{{ $t('pageInventory.table.healthRollup') }}:</dt> |
Dixsie Wolmers | 9726f9a | 2021-09-07 15:33:16 -0500 | [diff] [blame] | 75 | <dd>{{ dataFormatter(item.healthRollup) }}</dd> |
Sukanya Pandey | eb4cef3 | 2021-04-09 15:40:27 +0530 | [diff] [blame] | 76 | </dl> |
| 77 | </b-col> |
| 78 | </b-row> |
| 79 | <div class="section-divider mb-3 mt-3"></div> |
| 80 | <b-row> |
| 81 | <b-col class="mt-1" sm="6"> |
| 82 | <dl> |
| 83 | <!-- Manufacturer --> |
Sandeepa Singh | 7affc52 | 2021-07-06 16:29:10 +0530 | [diff] [blame] | 84 | <dt>{{ $t('pageInventory.table.manufacturer') }}:</dt> |
Thang Q. Nguyen | c689936 | 2021-10-20 02:08:49 +0000 | [diff] [blame] | 85 | <dd>{{ dataFormatter(item.manufacturer) }}</dd> |
Yoshie Muranaka | 56ee769 | 2020-05-28 13:28:29 -0700 | [diff] [blame] | 86 | <!-- Description --> |
Sandeepa Singh | 7affc52 | 2021-07-06 16:29:10 +0530 | [diff] [blame] | 87 | <dt>{{ $t('pageInventory.table.description') }}:</dt> |
Dixsie Wolmers | 9726f9a | 2021-09-07 15:33:16 -0500 | [diff] [blame] | 88 | <dd>{{ dataFormatter(item.description) }}</dd> |
Sukanya Pandey | eb4cef3 | 2021-04-09 15:40:27 +0530 | [diff] [blame] | 89 | <!-- Sub Model --> |
Sandeepa Singh | 7affc52 | 2021-07-06 16:29:10 +0530 | [diff] [blame] | 90 | <dt>{{ $t('pageInventory.table.subModel') }}:</dt> |
Sukanya Pandey | eb4cef3 | 2021-04-09 15:40:27 +0530 | [diff] [blame] | 91 | <dd> |
Dixsie Wolmers | 9726f9a | 2021-09-07 15:33:16 -0500 | [diff] [blame] | 92 | {{ dataFormatter(item.subModel) }} |
SurenNeware | bbf896c | 2021-01-27 21:50:22 +0530 | [diff] [blame] | 93 | </dd> |
Sukanya Pandey | eb4cef3 | 2021-04-09 15:40:27 +0530 | [diff] [blame] | 94 | <!-- System Type --> |
Sandeepa Singh | 7affc52 | 2021-07-06 16:29:10 +0530 | [diff] [blame] | 95 | <dt>{{ $t('pageInventory.table.systemType') }}:</dt> |
Sukanya Pandey | eb4cef3 | 2021-04-09 15:40:27 +0530 | [diff] [blame] | 96 | <dd> |
Dixsie Wolmers | 9726f9a | 2021-09-07 15:33:16 -0500 | [diff] [blame] | 97 | {{ dataFormatter(item.systemType) }} |
SurenNeware | bbf896c | 2021-01-27 21:50:22 +0530 | [diff] [blame] | 98 | </dd> |
Yoshie Muranaka | 56ee769 | 2020-05-28 13:28:29 -0700 | [diff] [blame] | 99 | </dl> |
| 100 | </b-col> |
Sukanya Pandey | eb4cef3 | 2021-04-09 15:40:27 +0530 | [diff] [blame] | 101 | <b-col sm="6"> |
Sandeepa Singh | 1908ac9 | 2021-08-31 16:38:17 +0530 | [diff] [blame] | 102 | <!-- Memory Summary --> |
| 103 | <p class="mt-1 mb-2 h6 float-none m-0"> |
| 104 | {{ $t('pageInventory.table.memorySummary') }} |
| 105 | </p> |
| 106 | <dl class="ml-4"> |
Yoshie Muranaka | 56ee769 | 2020-05-28 13:28:29 -0700 | [diff] [blame] | 107 | <!-- Status state --> |
Sandeepa Singh | 7affc52 | 2021-07-06 16:29:10 +0530 | [diff] [blame] | 108 | <dt>{{ $t('pageInventory.table.statusState') }}:</dt> |
Dixsie Wolmers | 9726f9a | 2021-09-07 15:33:16 -0500 | [diff] [blame] | 109 | <dd>{{ dataFormatter(item.memorySummaryState) }}</dd> |
Sukanya Pandey | eb4cef3 | 2021-04-09 15:40:27 +0530 | [diff] [blame] | 110 | <!-- Health --> |
Sandeepa Singh | 7affc52 | 2021-07-06 16:29:10 +0530 | [diff] [blame] | 111 | <dt>{{ $t('pageInventory.table.health') }}:</dt> |
Dixsie Wolmers | 9726f9a | 2021-09-07 15:33:16 -0500 | [diff] [blame] | 112 | <dd>{{ dataFormatter(item.memorySummaryHealth) }}</dd> |
Sukanya Pandey | eb4cef3 | 2021-04-09 15:40:27 +0530 | [diff] [blame] | 113 | <!-- Health Roll --> |
Sandeepa Singh | 7affc52 | 2021-07-06 16:29:10 +0530 | [diff] [blame] | 114 | <dt>{{ $t('pageInventory.table.healthRollup') }}:</dt> |
Nikhil Ashoka | 18cde3c | 2022-01-05 22:21:24 +0530 | [diff] [blame] | 115 | <dd>{{ dataFormatter(item.memorySummaryHealthRollup) }}</dd> |
| 116 | <!-- Total system memory --> |
| 117 | <dt>{{ $t('pageInventory.table.totalSystemMemoryGiB') }}:</dt> |
Glukhov Mikhail | d0b078f | 2022-12-24 12:16:53 +0300 | [diff] [blame^] | 118 | <dd> |
| 119 | {{ dataFormatter(item.totalSystemMemoryGiB) }} |
| 120 | {{ $t('unit.GiB') }} |
| 121 | </dd> |
Sandeepa Singh | 1908ac9 | 2021-08-31 16:38:17 +0530 | [diff] [blame] | 122 | </dl> |
| 123 | <!-- Processor Summary --> |
| 124 | <p class="mt-1 mb-2 h6 float-none m-0"> |
| 125 | {{ $t('pageInventory.table.processorSummary') }} |
| 126 | </p> |
| 127 | <dl class="ml-4"> |
Sukanya Pandey | eb4cef3 | 2021-04-09 15:40:27 +0530 | [diff] [blame] | 128 | <!-- Status state --> |
Sandeepa Singh | 7affc52 | 2021-07-06 16:29:10 +0530 | [diff] [blame] | 129 | <dt>{{ $t('pageInventory.table.statusState') }}:</dt> |
Dixsie Wolmers | 9726f9a | 2021-09-07 15:33:16 -0500 | [diff] [blame] | 130 | <dd>{{ dataFormatter(item.processorSummaryState) }}</dd> |
Sukanya Pandey | eb4cef3 | 2021-04-09 15:40:27 +0530 | [diff] [blame] | 131 | <!-- Health --> |
Sandeepa Singh | 7affc52 | 2021-07-06 16:29:10 +0530 | [diff] [blame] | 132 | <dt>{{ $t('pageInventory.table.health') }}:</dt> |
Dixsie Wolmers | 9726f9a | 2021-09-07 15:33:16 -0500 | [diff] [blame] | 133 | <dd>{{ dataFormatter(item.processorSummaryHealth) }}</dd> |
Sukanya Pandey | eb4cef3 | 2021-04-09 15:40:27 +0530 | [diff] [blame] | 134 | <!-- Health Rollup --> |
Sandeepa Singh | 7affc52 | 2021-07-06 16:29:10 +0530 | [diff] [blame] | 135 | <dt>{{ $t('pageInventory.table.healthRollup') }}:</dt> |
Dixsie Wolmers | 9726f9a | 2021-09-07 15:33:16 -0500 | [diff] [blame] | 136 | <dd>{{ dataFormatter(item.processorSummaryHealthRoll) }}</dd> |
Sukanya Pandey | eb4cef3 | 2021-04-09 15:40:27 +0530 | [diff] [blame] | 137 | <!-- Count --> |
Sandeepa Singh | 7affc52 | 2021-07-06 16:29:10 +0530 | [diff] [blame] | 138 | <dt>{{ $t('pageInventory.table.count') }}:</dt> |
Dixsie Wolmers | 9726f9a | 2021-09-07 15:33:16 -0500 | [diff] [blame] | 139 | <dd>{{ dataFormatter(item.processorSummaryCount) }}</dd> |
Nikhil Ashoka | 18cde3c | 2022-01-05 22:21:24 +0530 | [diff] [blame] | 140 | <!-- Core Count --> |
| 141 | <dt>{{ $t('pageInventory.table.coreCount') }}:</dt> |
| 142 | <dd>{{ dataFormatter(item.processorSummaryCoreCount) }}</dd> |
Yoshie Muranaka | 56ee769 | 2020-05-28 13:28:29 -0700 | [diff] [blame] | 143 | </dl> |
| 144 | </b-col> |
| 145 | </b-row> |
| 146 | </b-container> |
| 147 | </template> |
| 148 | </b-table> |
| 149 | </page-section> |
| 150 | </template> |
| 151 | |
| 152 | <script> |
Sukanya Pandey | eb4cef3 | 2021-04-09 15:40:27 +0530 | [diff] [blame] | 153 | import BVToastMixin from '@/components/Mixins/BVToastMixin'; |
Yoshie Muranaka | 56ee769 | 2020-05-28 13:28:29 -0700 | [diff] [blame] | 154 | import PageSection from '@/components/Global/PageSection'; |
| 155 | import IconChevron from '@carbon/icons-vue/es/chevron--down/20'; |
| 156 | |
| 157 | import StatusIcon from '@/components/Global/StatusIcon'; |
Dixsie Wolmers | b53e086 | 2020-09-08 14:13:38 -0500 | [diff] [blame] | 158 | |
SurenNeware | ba91c49 | 2020-10-27 14:18:54 +0530 | [diff] [blame] | 159 | import TableRowExpandMixin, { |
| 160 | expandRowLabel, |
| 161 | } from '@/components/Mixins/TableRowExpandMixin'; |
Dixsie Wolmers | 9726f9a | 2021-09-07 15:33:16 -0500 | [diff] [blame] | 162 | import DataFormatterMixin from '@/components/Mixins/DataFormatterMixin'; |
Yoshie Muranaka | 56ee769 | 2020-05-28 13:28:29 -0700 | [diff] [blame] | 163 | |
| 164 | export default { |
| 165 | components: { IconChevron, PageSection, StatusIcon }, |
Dixsie Wolmers | 9726f9a | 2021-09-07 15:33:16 -0500 | [diff] [blame] | 166 | mixins: [BVToastMixin, TableRowExpandMixin, DataFormatterMixin], |
Yoshie Muranaka | 56ee769 | 2020-05-28 13:28:29 -0700 | [diff] [blame] | 167 | data() { |
| 168 | return { |
Kenneth Fullbright | 4105785 | 2021-12-27 16:19:37 -0600 | [diff] [blame] | 169 | isBusy: true, |
Yoshie Muranaka | 56ee769 | 2020-05-28 13:28:29 -0700 | [diff] [blame] | 170 | fields: [ |
| 171 | { |
| 172 | key: 'expandRow', |
| 173 | label: '', |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 174 | tdClass: 'table-row-expand', |
Yoshie Muranaka | 56ee769 | 2020-05-28 13:28:29 -0700 | [diff] [blame] | 175 | }, |
| 176 | { |
| 177 | key: 'id', |
Sandeepa Singh | 7affc52 | 2021-07-06 16:29:10 +0530 | [diff] [blame] | 178 | label: this.$t('pageInventory.table.id'), |
Dixsie Wolmers | 9726f9a | 2021-09-07 15:33:16 -0500 | [diff] [blame] | 179 | formatter: this.dataFormatter, |
Yoshie Muranaka | 56ee769 | 2020-05-28 13:28:29 -0700 | [diff] [blame] | 180 | }, |
| 181 | { |
Sukanya Pandey | eb4cef3 | 2021-04-09 15:40:27 +0530 | [diff] [blame] | 182 | key: 'hardwareType', |
Sandeepa Singh | 7affc52 | 2021-07-06 16:29:10 +0530 | [diff] [blame] | 183 | label: this.$t('pageInventory.table.hardwareType'), |
Dixsie Wolmers | 9726f9a | 2021-09-07 15:33:16 -0500 | [diff] [blame] | 184 | formatter: this.dataFormatter, |
Sukanya Pandey | eb4cef3 | 2021-04-09 15:40:27 +0530 | [diff] [blame] | 185 | tdClass: 'text-nowrap', |
| 186 | }, |
| 187 | { |
Yoshie Muranaka | 56ee769 | 2020-05-28 13:28:29 -0700 | [diff] [blame] | 188 | key: 'health', |
Sandeepa Singh | 7affc52 | 2021-07-06 16:29:10 +0530 | [diff] [blame] | 189 | label: this.$t('pageInventory.table.health'), |
Dixsie Wolmers | 9726f9a | 2021-09-07 15:33:16 -0500 | [diff] [blame] | 190 | formatter: this.dataFormatter, |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 191 | tdClass: 'text-nowrap', |
Yoshie Muranaka | 56ee769 | 2020-05-28 13:28:29 -0700 | [diff] [blame] | 192 | }, |
| 193 | { |
Sukanya Pandey | eb4cef3 | 2021-04-09 15:40:27 +0530 | [diff] [blame] | 194 | key: 'locationNumber', |
Sandeepa Singh | 7affc52 | 2021-07-06 16:29:10 +0530 | [diff] [blame] | 195 | label: this.$t('pageInventory.table.locationNumber'), |
Dixsie Wolmers | 9726f9a | 2021-09-07 15:33:16 -0500 | [diff] [blame] | 196 | formatter: this.dataFormatter, |
Yoshie Muranaka | 56ee769 | 2020-05-28 13:28:29 -0700 | [diff] [blame] | 197 | }, |
| 198 | { |
Sukanya Pandey | eb4cef3 | 2021-04-09 15:40:27 +0530 | [diff] [blame] | 199 | key: 'locationIndicatorActive', |
Sandeepa Singh | 7affc52 | 2021-07-06 16:29:10 +0530 | [diff] [blame] | 200 | label: this.$t('pageInventory.table.identifyLed'), |
Dixsie Wolmers | 9726f9a | 2021-09-07 15:33:16 -0500 | [diff] [blame] | 201 | formatter: this.dataFormatter, |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 202 | }, |
| 203 | ], |
SurenNeware | ba91c49 | 2020-10-27 14:18:54 +0530 | [diff] [blame] | 204 | expandRowLabel: expandRowLabel, |
Yoshie Muranaka | 56ee769 | 2020-05-28 13:28:29 -0700 | [diff] [blame] | 205 | }; |
| 206 | }, |
| 207 | computed: { |
| 208 | systems() { |
| 209 | return this.$store.getters['system/systems']; |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 210 | }, |
Yoshie Muranaka | 56ee769 | 2020-05-28 13:28:29 -0700 | [diff] [blame] | 211 | }, |
| 212 | created() { |
| 213 | this.$store.dispatch('system/getSystem').finally(() => { |
Gunnar Mills | defc9e2 | 2020-07-07 20:29:03 -0500 | [diff] [blame] | 214 | // Emit initial data fetch complete to parent component |
Sukanya Pandey | edb8a77 | 2020-10-29 11:33:42 +0530 | [diff] [blame] | 215 | this.$root.$emit('hardware-status-system-complete'); |
Kenneth Fullbright | 4105785 | 2021-12-27 16:19:37 -0600 | [diff] [blame] | 216 | this.isBusy = false; |
Yoshie Muranaka | 56ee769 | 2020-05-28 13:28:29 -0700 | [diff] [blame] | 217 | }); |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 218 | }, |
Sukanya Pandey | eb4cef3 | 2021-04-09 15:40:27 +0530 | [diff] [blame] | 219 | methods: { |
| 220 | toggleIdentifyLedSwitch(state) { |
| 221 | this.$store |
| 222 | .dispatch('system/changeIdentifyLedState', state) |
| 223 | .catch(({ message }) => this.errorToast(message)); |
| 224 | }, |
| 225 | }, |
Yoshie Muranaka | 56ee769 | 2020-05-28 13:28:29 -0700 | [diff] [blame] | 226 | }; |
| 227 | </script> |