summaryrefslogtreecommitdiff
path: root/src/store/modules/Control/ControlStore.js
diff options
context:
space:
mode:
authorYoshie Muranaka <yoshiemuranaka@gmail.com>2020-02-25 02:42:40 +0300
committerYoshie Muranaka <yoshiemuranaka@gmail.com>2020-02-26 23:39:55 +0300
commit547b5fc35b0f658f88414f8628f668af89f62734 (patch)
tree2bd051f3a16b05cd41995085e898651d76c18013 /src/store/modules/Control/ControlStore.js
parent1b1c1005905c0d5a0145377718ad773fe08d0863 (diff)
downloadwebui-vue-547b5fc35b0f658f88414f8628f668af89f62734.tar.xz
Update language json structure
Restructure language file to use consistent pattern across pages following loose guidelines. - Create buckets for common global labels - Create common component objects–appHeader, appNavigation, appPageTitle - Page specific labels should be nested in an object with a key prefixed with 'page' followed by the page title - Any 'major' child components should be nested inside page specific objects - Avoid any complex linked locale messages - Alphabetize object keys, alphabetize nested properties at end of object block Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: Ie4222b3ce24dec7af31b55b5a77425ca2f492789
Diffstat (limited to 'src/store/modules/Control/ControlStore.js')
-rw-r--r--src/store/modules/Control/ControlStore.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/store/modules/Control/ControlStore.js b/src/store/modules/Control/ControlStore.js
index f6415771..9b2e4592 100644
--- a/src/store/modules/Control/ControlStore.js
+++ b/src/store/modules/Control/ControlStore.js
@@ -8,12 +8,10 @@ const ControlStore = {
const data = { ResetType: 'GracefulRestart' };
return await api
.post('/redfish/v1/Managers/bmc/Actions/Manager.Reset', data)
- .then(() => i18n.t('pageRebootBmc.toastMessages.successRebootStart'))
+ .then(() => i18n.t('pageRebootBmc.toast.successRebootStart'))
.catch(error => {
console.log(error);
- throw new Error(
- i18n.t('pageRebootBmc.toastMessages.errorRebootStart')
- );
+ throw new Error(i18n.t('pageRebootBmc.toast.errorRebootStart'));
});
}
}