summaryrefslogtreecommitdiff
path: root/src/store
diff options
context:
space:
mode:
authorSandeepa Singh <sandeepa.singh@ibm.com>2021-07-14 13:32:22 +0300
committerDerick Montague <derick.montague@ibm.com>2021-08-10 22:20:42 +0300
commit68cbbe9014cbdcf7229a878f564d38f6d6199f25 (patch)
treecd7138959f405cb44b5d62000da9d364ed238b91 /src/store
parent7affc529b7fba41193c4d48764707e9961cdd22d (diff)
downloadwebui-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')
-rw-r--r--src/store/index.js14
-rw-r--r--src/store/modules/HardwareStatus/ServerLedStore.js15
-rw-r--r--src/store/modules/Operations/BootSettingsStore.js (renamed from src/store/modules/Control/BootSettingsStore.js)0
-rw-r--r--src/store/modules/Operations/ControlStore.js (renamed from src/store/modules/Control/ControlStore.js)0
-rw-r--r--src/store/modules/Operations/FactoryResetStore.js (renamed from src/store/modules/Control/FactoryResetStore.js)0
-rw-r--r--src/store/modules/Operations/FirmwareStore.js (renamed from src/store/modules/Configuration/FirmwareStore.js)0
-rw-r--r--src/store/modules/Operations/PowerControlStore.js (renamed from src/store/modules/Control/PowerControlStore.js)0
-rw-r--r--src/store/modules/Operations/PowerPolicyStore.js (renamed from src/store/modules/Control/PowerPolicyStore.js)0
-rw-r--r--src/store/modules/Operations/VirtualMediaStore.js (renamed from src/store/modules/Control/VirtualMediaStore.js)0
9 files changed, 13 insertions, 16 deletions
diff --git a/src/store/index.js b/src/store/index.js
index 3ea4c5ab..fcfac59f 100644
--- a/src/store/index.js
+++ b/src/store/index.js
@@ -7,11 +7,11 @@ import ClientSessions from './modules/AccessControl/ClientSessionsStore';
import LdapStore from './modules/AccessControl/LdapStore';
import LocalUserManagementStore from './modules/AccessControl/LocalUserMangementStore';
import SslCertificatesStore from './modules/AccessControl/SslCertificatesStore';
-import FirmwareStore from './modules/Configuration/FirmwareStore';
-import BootSettingsStore from './modules/Control/BootSettingsStore';
-import ControlStore from './modules/Control/ControlStore';
-import PowerControlStore from './modules/Control/PowerControlStore';
-import PowerPolicyStore from './modules/Control/PowerPolicyStore';
+import FirmwareStore from './modules/Operations/FirmwareStore';
+import BootSettingsStore from './modules/Operations/BootSettingsStore';
+import ControlStore from './modules/Operations/ControlStore';
+import PowerControlStore from './modules/Operations/PowerControlStore';
+import PowerPolicyStore from './modules/Operations/PowerPolicyStore';
import NetworkSettingStore from './modules/Configuration/NetworkSettingsStore';
import EventLogStore from './modules/Logs/EventLogStore';
import SensorsStore from './modules/HardwareStatus/SensorsStore';
@@ -25,11 +25,11 @@ import BmcStore from './modules/HardwareStatus/BmcStore';
import ProcessorStore from './modules/HardwareStatus/ProcessorStore';
import PostCodeLogsStore from './modules/Logs/PostCodeLogsStore';
import SecuritySettingsStore from './modules/Configuration/SecuritySettingsStore';
-import FactoryResetStore from './modules/Control/FactoryResetStore';
+import FactoryResetStore from './modules/Operations/FactoryResetStore';
import WebSocketPlugin from './plugins/WebSocketPlugin';
import DateTimeStore from './modules/Configuration/DateTimeSettingsStore';
-import VirtualMediaStore from './modules/Control/VirtualMediaStore';
+import VirtualMediaStore from './modules/Operations/VirtualMediaStore';
Vue.use(Vuex);
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')
+ );
}
});
},
diff --git a/src/store/modules/Control/BootSettingsStore.js b/src/store/modules/Operations/BootSettingsStore.js
index 7a36dd84..7a36dd84 100644
--- a/src/store/modules/Control/BootSettingsStore.js
+++ b/src/store/modules/Operations/BootSettingsStore.js
diff --git a/src/store/modules/Control/ControlStore.js b/src/store/modules/Operations/ControlStore.js
index 9b8bf73d..9b8bf73d 100644
--- a/src/store/modules/Control/ControlStore.js
+++ b/src/store/modules/Operations/ControlStore.js
diff --git a/src/store/modules/Control/FactoryResetStore.js b/src/store/modules/Operations/FactoryResetStore.js
index 8118cf7f..8118cf7f 100644
--- a/src/store/modules/Control/FactoryResetStore.js
+++ b/src/store/modules/Operations/FactoryResetStore.js
diff --git a/src/store/modules/Configuration/FirmwareStore.js b/src/store/modules/Operations/FirmwareStore.js
index c6639ff7..c6639ff7 100644
--- a/src/store/modules/Configuration/FirmwareStore.js
+++ b/src/store/modules/Operations/FirmwareStore.js
diff --git a/src/store/modules/Control/PowerControlStore.js b/src/store/modules/Operations/PowerControlStore.js
index 9dbddf05..9dbddf05 100644
--- a/src/store/modules/Control/PowerControlStore.js
+++ b/src/store/modules/Operations/PowerControlStore.js
diff --git a/src/store/modules/Control/PowerPolicyStore.js b/src/store/modules/Operations/PowerPolicyStore.js
index 4e76cdfe..4e76cdfe 100644
--- a/src/store/modules/Control/PowerPolicyStore.js
+++ b/src/store/modules/Operations/PowerPolicyStore.js
diff --git a/src/store/modules/Control/VirtualMediaStore.js b/src/store/modules/Operations/VirtualMediaStore.js
index 7c183b0e..7c183b0e 100644
--- a/src/store/modules/Control/VirtualMediaStore.js
+++ b/src/store/modules/Operations/VirtualMediaStore.js