diff options
author | Sandeepa Singh <sandeepa.singh@ibm.com> | 2021-07-14 13:32:22 +0300 |
---|---|---|
committer | Derick Montague <derick.montague@ibm.com> | 2021-08-10 22:20:42 +0300 |
commit | 68cbbe9014cbdcf7229a878f564d38f6d6199f25 (patch) | |
tree | cd7138959f405cb44b5d62000da9d364ed238b91 /src/store/modules/HardwareStatus | |
parent | 7affc529b7fba41193c4d48764707e9961cdd22d (diff) | |
download | webui-vue-68cbbe9014cbdcf7229a878f564d38f6d6199f25.tar.xz |
IA update: Update control section to operations
This is the third update to the information architecture changes and
has the following changes:
- The control section has been updated to operations
- The server led page has been removed
- The firmware page is moved to operations section
Signed-off-by: Sandeepa Singh <sandeepa.singh@ibm.com>
Change-Id: I2e23da447890d7bee51892e1f782d5f2db6dded4
Diffstat (limited to 'src/store/modules/HardwareStatus')
-rw-r--r-- | src/store/modules/HardwareStatus/ServerLedStore.js | 15 |
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') + ); } }); }, |