Added toast notification for identify LEDs
- Added success toast notification messages for identify
LEDs present at Inventory and LEDs page and Overview.
- Import of Toast was not present in Overview's Inventory
card and DIMM slot table, fixed it.
Signed-off-by: Nikhil Ashoka <a.nikhil@ibm.com>
Change-Id: If9ad84e66f6f15616cb8af51b1e84d8d06b1afd0
diff --git a/src/store/modules/HardwareStatus/SystemStore.js b/src/store/modules/HardwareStatus/SystemStore.js
index f138234..ea519d7 100644
--- a/src/store/modules/HardwareStatus/SystemStore.js
+++ b/src/store/modules/HardwareStatus/SystemStore.js
@@ -49,6 +49,13 @@
.patch('/redfish/v1/Systems/system', {
LocationIndicatorActive: ledState,
})
+ .then(() => {
+ if (ledState) {
+ return i18n.t('pageInventory.toast.successEnableIdentifyLed');
+ } else {
+ return i18n.t('pageInventory.toast.successDisableIdentifyLed');
+ }
+ })
.catch((error) => {
commit('setSystemInfo', this.state.system.systems[0]);
console.log('error', error);