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