summaryrefslogtreecommitdiff
path: root/src/store/modules/HardwareStatus/BmcStore.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/store/modules/HardwareStatus/BmcStore.js')
-rw-r--r--src/store/modules/HardwareStatus/BmcStore.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/store/modules/HardwareStatus/BmcStore.js b/src/store/modules/HardwareStatus/BmcStore.js
index f225e925..d96926ea 100644
--- a/src/store/modules/HardwareStatus/BmcStore.js
+++ b/src/store/modules/HardwareStatus/BmcStore.js
@@ -58,7 +58,14 @@ const BmcStore = {
};
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);