summaryrefslogtreecommitdiff
path: root/src/views
diff options
context:
space:
mode:
Diffstat (limited to 'src/views')
-rw-r--r--src/views/HardwareStatus/Inventory/InventoryServiceIndicator.vue1
-rw-r--r--src/views/HardwareStatus/Inventory/InventoryTableAssembly.vue1
-rw-r--r--src/views/HardwareStatus/Inventory/InventoryTableBmcManager.vue1
-rw-r--r--src/views/HardwareStatus/Inventory/InventoryTableChassis.vue1
-rw-r--r--src/views/HardwareStatus/Inventory/InventoryTableDimmSlot.vue3
-rw-r--r--src/views/HardwareStatus/Inventory/InventoryTableProcessors.vue1
-rw-r--r--src/views/HardwareStatus/Inventory/InventoryTableSystem.vue1
-rw-r--r--src/views/Overview/OverviewInventory.vue3
8 files changed, 12 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));
},
},
diff --git a/src/views/Overview/OverviewInventory.vue b/src/views/Overview/OverviewInventory.vue
index 575cb7b7..1da5685f 100644
--- a/src/views/Overview/OverviewInventory.vue
+++ b/src/views/Overview/OverviewInventory.vue
@@ -29,12 +29,14 @@
<script>
import OverviewCard from './OverviewCard';
+import BVToastMixin from '@/components/Mixins/BVToastMixin';
export default {
name: 'Inventory',
components: {
OverviewCard,
},
+ mixins: [BVToastMixin],
computed: {
systems() {
let systemData = this.$store.getters['system/systems'][0];
@@ -50,6 +52,7 @@ export default {
toggleIdentifyLedSwitch(state) {
this.$store
.dispatch('system/changeIdentifyLedState', state)
+ .then((message) => this.successToast(message))
.catch(({ message }) => this.errorToast(message));
},
},