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/BmcStore.js b/src/store/modules/HardwareStatus/BmcStore.js
index f225e92..d96926e 100644
--- a/src/store/modules/HardwareStatus/BmcStore.js
+++ b/src/store/modules/HardwareStatus/BmcStore.js
@@ -58,7 +58,14 @@
};
return await api
.patch(uri, updatedIdentifyLedValue)
- .then(() => dispatch('getBmcInfo'))
+ .then(() => {
+ dispatch('getBmcInfo');
+ if (led.identifyLed) {
+ return i18n.t('pageInventory.toast.successEnableIdentifyLed');
+ } else {
+ return i18n.t('pageInventory.toast.successDisableIdentifyLed');
+ }
+ })
.catch((error) => {
dispatch('getBmcInfo');
console.log('error', error);