Vuelidate, I18n, and filter are upgraded to vue3
While navigating to the pages i18n, vuelidate, and filters errors
occurred. i18n, and vuelidate code changes in each page adapted to
vue3. Filter global function for date and time format implemented
in the main.js file and those files which as called the filter
functions.
Change-Id: If1a2ee22d47750faef1c35ef2c263299067d9a20
Signed-off-by: Surya Venkatesan <suryav@ami.com>
diff --git a/src/store/modules/Operations/ControlStore.js b/src/store/modules/Operations/ControlStore.js
index 320df6f..82ab249 100644
--- a/src/store/modules/Operations/ControlStore.js
+++ b/src/store/modules/Operations/ControlStore.js
@@ -78,10 +78,12 @@
`${await this.dispatch('global/getBmcPath')}/Actions/Manager.Reset`,
data,
)
- .then(() => i18n.t('pageRebootBmc.toast.successRebootStart'))
+ .then(() => i18n.global.t('pageRebootBmc.toast.successRebootStart'))
.catch((error) => {
console.log(error);
- throw new Error(i18n.t('pageRebootBmc.toast.errorRebootStart'));
+ throw new Error(
+ i18n.global.t('pageRebootBmc.toast.errorRebootStart'),
+ );
});
},
async serverPowerOn({ dispatch, commit }) {