summaryrefslogtreecommitdiff
path: root/src/store/modules/Control/FactoryResetStore.js
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/modules/Control/FactoryResetStore.js
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/modules/Control/FactoryResetStore.js')
-rw-r--r--src/store/modules/Control/FactoryResetStore.js32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/store/modules/Control/FactoryResetStore.js b/src/store/modules/Control/FactoryResetStore.js
deleted file mode 100644
index 8118cf7f..00000000
--- a/src/store/modules/Control/FactoryResetStore.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import api from '@/store/api';
-import i18n from '@/i18n';
-
-const FactoryResetStore = {
- namespaced: true,
- actions: {
- async resetToDefaults() {
- return await api
- .post('/redfish/v1/Managers/bmc/Actions/Manager.ResetToDefaults', {
- ResetToDefaultsType: 'ResetAll',
- })
- .then(() => i18n.t('pageFactoryReset.toast.resetToDefaultsSuccess'))
- .catch((error) => {
- console.log('Factory Reset: ', error);
- throw new Error(
- i18n.t('pageFactoryReset.toast.resetToDefaultsError')
- );
- });
- },
- async resetBios() {
- return await api
- .post('/redfish/v1/Systems/system/Bios/Actions/Bios.ResetBios')
- .then(() => i18n.t('pageFactoryReset.toast.resetBiosSuccess'))
- .catch((error) => {
- console.log('Factory Reset: ', error);
- throw new Error(i18n.t('pageFactoryReset.toast.resetBiosError'));
- });
- },
- },
-};
-
-export default FactoryResetStore;