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
diff --git a/src/store/modules/HardwareStatus/ServerLedStore.js b/src/store/modules/HardwareStatus/ServerLedStore.js
index a8903e2..028a6f7 100644
--- a/src/store/modules/HardwareStatus/ServerLedStore.js
+++ b/src/store/modules/HardwareStatus/ServerLedStore.js
@@ -32,20 +32,17 @@
.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')
+ );
}
});
},