diff options
Diffstat (limited to 'src/store/modules/HardwareStatus/ChassisStore.js')
-rw-r--r-- | src/store/modules/HardwareStatus/ChassisStore.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/store/modules/HardwareStatus/ChassisStore.js b/src/store/modules/HardwareStatus/ChassisStore.js index 6f2d74a2..7e591ad2 100644 --- a/src/store/modules/HardwareStatus/ChassisStore.js +++ b/src/store/modules/HardwareStatus/ChassisStore.js @@ -72,7 +72,14 @@ const ChassisStore = { }; return await api .patch(uri, updatedIdentifyLedValue) - .then(() => dispatch('getChassisInfo')) + .then(() => { + dispatch('getChassisInfo'); + if (led.identifyLed) { + return i18n.t('pageInventory.toast.successEnableIdentifyLed'); + } else { + return i18n.t('pageInventory.toast.successDisableIdentifyLed'); + } + }) .catch((error) => { dispatch('getChassisInfo'); console.log('error', error); |