summaryrefslogtreecommitdiff
path: root/src/store/modules/HardwareStatus/ServerLedStore.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/store/modules/HardwareStatus/ServerLedStore.js')
-rw-r--r--src/store/modules/HardwareStatus/ServerLedStore.js15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/store/modules/HardwareStatus/ServerLedStore.js b/src/store/modules/HardwareStatus/ServerLedStore.js
index a8903e2a..028a6f70 100644
--- a/src/store/modules/HardwareStatus/ServerLedStore.js
+++ b/src/store/modules/HardwareStatus/ServerLedStore.js
@@ -32,20 +32,17 @@ const ServerLedStore = {
.patch('/redfish/v1/Systems/system', {
LocationIndicatorActive: payload,
})
- .then(() => {
- if (payload) {
- return i18n.t('pageServerLed.toast.successServerLedOn');
- } else {
- return i18n.t('pageServerLed.toast.successServerLedOff');
- }
- })
.catch((error) => {
console.log(error);
commit('setIndicatorLedActiveState', !payload);
if (payload) {
- throw new Error(i18n.t('pageServerLed.toast.errorServerLedOn'));
+ throw new Error(
+ i18n.t('pageInventory.toast.errorEnableIdentifyLed')
+ );
} else {
- throw new Error(i18n.t('pageServerLed.toast.errorServerLedOff'));
+ throw new Error(
+ i18n.t('pageInventory.toast.errorDisableIdentifyLed')
+ );
}
});
},