diff options
Diffstat (limited to 'src/views/HardwareStatus')
7 files changed, 9 insertions, 0 deletions
diff --git a/src/views/HardwareStatus/Inventory/InventoryServiceIndicator.vue b/src/views/HardwareStatus/Inventory/InventoryServiceIndicator.vue index 01f4a446..0825ad7b 100644 --- a/src/views/HardwareStatus/Inventory/InventoryServiceIndicator.vue +++ b/src/views/HardwareStatus/Inventory/InventoryServiceIndicator.vue @@ -69,6 +69,7 @@ export default { toggleIdentifyLedSwitch(state) { this.$store .dispatch('system/changeIdentifyLedState', state) + .then((message) => this.successToast(message)) .catch(({ message }) => this.errorToast(message)); }, }, diff --git a/src/views/HardwareStatus/Inventory/InventoryTableAssembly.vue b/src/views/HardwareStatus/Inventory/InventoryTableAssembly.vue index b4010bfe..b9f59cc6 100644 --- a/src/views/HardwareStatus/Inventory/InventoryTableAssembly.vue +++ b/src/views/HardwareStatus/Inventory/InventoryTableAssembly.vue @@ -143,6 +143,7 @@ export default { memberId: row.id, identifyLed: row.identifyLed, }) + .then((message) => this.successToast(message)) .catch(({ message }) => this.errorToast(message)); }, hasIdentifyLed(identifyLed) { diff --git a/src/views/HardwareStatus/Inventory/InventoryTableBmcManager.vue b/src/views/HardwareStatus/Inventory/InventoryTableBmcManager.vue index 48b914f4..cf3ee2bf 100644 --- a/src/views/HardwareStatus/Inventory/InventoryTableBmcManager.vue +++ b/src/views/HardwareStatus/Inventory/InventoryTableBmcManager.vue @@ -233,6 +233,7 @@ export default { uri: row.uri, identifyLed: row.identifyLed, }) + .then((message) => this.successToast(message)) .catch(({ message }) => this.errorToast(message)); }, // TO DO: remove hasIdentifyLed method once the following story is merged: diff --git a/src/views/HardwareStatus/Inventory/InventoryTableChassis.vue b/src/views/HardwareStatus/Inventory/InventoryTableChassis.vue index 4c557fa2..18ddfbaf 100644 --- a/src/views/HardwareStatus/Inventory/InventoryTableChassis.vue +++ b/src/views/HardwareStatus/Inventory/InventoryTableChassis.vue @@ -186,6 +186,7 @@ export default { uri: row.uri, identifyLed: row.identifyLed, }) + .then((message) => this.successToast(message)) .catch(({ message }) => this.errorToast(message)); }, // TO DO: Remove this method when the LocationIndicatorActive is added from backend. diff --git a/src/views/HardwareStatus/Inventory/InventoryTableDimmSlot.vue b/src/views/HardwareStatus/Inventory/InventoryTableDimmSlot.vue index 6aa1578f..f3db133e 100644 --- a/src/views/HardwareStatus/Inventory/InventoryTableDimmSlot.vue +++ b/src/views/HardwareStatus/Inventory/InventoryTableDimmSlot.vue @@ -193,6 +193,7 @@ import IconChevron from '@carbon/icons-vue/es/chevron--down/20'; import StatusIcon from '@/components/Global/StatusIcon'; import TableCellCount from '@/components/Global/TableCellCount'; +import BVToastMixin from '@/components/Mixins/BVToastMixin'; import DataFormatterMixin from '@/components/Mixins/DataFormatterMixin'; import TableSortMixin from '@/components/Mixins/TableSortMixin'; import Search from '@/components/Global/Search'; @@ -206,6 +207,7 @@ import TableRowExpandMixin, { export default { components: { IconChevron, PageSection, StatusIcon, Search, TableCellCount }, mixins: [ + BVToastMixin, TableRowExpandMixin, DataFormatterMixin, TableSortMixin, @@ -287,6 +289,7 @@ export default { uri: row.uri, identifyLed: row.identifyLed, }) + .then((message) => this.successToast(message)) .catch(({ message }) => this.errorToast(message)); }, hasIdentifyLed(identifyLed) { diff --git a/src/views/HardwareStatus/Inventory/InventoryTableProcessors.vue b/src/views/HardwareStatus/Inventory/InventoryTableProcessors.vue index 07376a5b..2887fc49 100644 --- a/src/views/HardwareStatus/Inventory/InventoryTableProcessors.vue +++ b/src/views/HardwareStatus/Inventory/InventoryTableProcessors.vue @@ -257,6 +257,7 @@ export default { uri: row.uri, identifyLed: row.identifyLed, }) + .then((message) => this.successToast(message)) .catch(({ message }) => this.errorToast(message)); }, // TO DO: remove hasIdentifyLed when the following is merged: diff --git a/src/views/HardwareStatus/Inventory/InventoryTableSystem.vue b/src/views/HardwareStatus/Inventory/InventoryTableSystem.vue index 3eb7ca29..8ac1a259 100644 --- a/src/views/HardwareStatus/Inventory/InventoryTableSystem.vue +++ b/src/views/HardwareStatus/Inventory/InventoryTableSystem.vue @@ -202,6 +202,7 @@ export default { toggleIdentifyLedSwitch(state) { this.$store .dispatch('system/changeIdentifyLedState', state) + .then((message) => this.successToast(message)) .catch(({ message }) => this.errorToast(message)); }, }, |