summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason M. Bills <jason.m.bills@intel.com>2025-04-30 21:52:46 +0300
committerJason M. Bills <jason.m.bills@intel.com>2025-04-30 21:59:52 +0300
commit142fe91835e0f57b01a2801946f1b63ab56ee3cc (patch)
treec905c83c71c2f56edc33a9e6502a0976689ac194
parentb05410f06593cb643970b8f9ebb56a82e0122bc7 (diff)
downloadwebui-vue-142fe91835e0f57b01a2801946f1b63ab56ee3cc.tar.xz
i18n: fix global method in intel router
The change from i18n.t method to i18n.global.t for vue3 support was missed in the Intel router and caused the pages to fail to load. Tested: Confirmed that pages all load correctly. Change-Id: I9d922f0f4d5016b8a12fd48a97192a95aa646472 Signed-off-by: Jason M. Bills <jason.m.bills@intel.com>
-rw-r--r--src/env/router/intel.js48
1 files changed, 24 insertions, 24 deletions
diff --git a/src/env/router/intel.js b/src/env/router/intel.js
index 5f3ee6eb9..9abdc68db 100644
--- a/src/env/router/intel.js
+++ b/src/env/router/intel.js
@@ -44,7 +44,7 @@ const routes = [
name: 'login',
component: Login,
meta: {
- title: i18n.t('appPageTitle.login'),
+ title: i18n.global.t('appPageTitle.login'),
},
},
{
@@ -52,7 +52,7 @@ const routes = [
name: 'change-password',
component: ChangePassword,
meta: {
- title: i18n.t('appPageTitle.changePassword'),
+ title: i18n.global.t('appPageTitle.changePassword'),
requiresAuth: true,
},
},
@@ -70,7 +70,7 @@ const routes = [
name: 'serial-over-lan-console',
component: SerialOverLanConsole,
meta: {
- title: i18n.t('appPageTitle.serialOverLan'),
+ title: i18n.global.t('appPageTitle.serialOverLan'),
},
},
{
@@ -78,7 +78,7 @@ const routes = [
name: 'kvm-console',
component: KvmConsole,
meta: {
- title: i18n.t('appPageTitle.kvm'),
+ title: i18n.global.t('appPageTitle.kvm'),
},
},
],
@@ -95,7 +95,7 @@ const routes = [
name: 'overview',
component: Overview,
meta: {
- title: i18n.t('appPageTitle.overview'),
+ title: i18n.global.t('appPageTitle.overview'),
},
},
{
@@ -103,7 +103,7 @@ const routes = [
name: 'profile-settings',
component: ProfileSettings,
meta: {
- title: i18n.t('appPageTitle.profileSettings'),
+ title: i18n.global.t('appPageTitle.profileSettings'),
},
},
{
@@ -111,7 +111,7 @@ const routes = [
name: 'event-logs',
component: EventLogs,
meta: {
- title: i18n.t('appPageTitle.eventLogs'),
+ title: i18n.global.t('appPageTitle.eventLogs'),
},
},
{
@@ -119,7 +119,7 @@ const routes = [
name: 'post-code-logs',
component: PostCodeLogs,
meta: {
- title: i18n.t('appPageTitle.postCodeLogs'),
+ title: i18n.global.t('appPageTitle.postCodeLogs'),
},
},
{
@@ -127,7 +127,7 @@ const routes = [
name: 'inventory',
component: Inventory,
meta: {
- title: i18n.t('appPageTitle.inventory'),
+ title: i18n.global.t('appPageTitle.inventory'),
},
},
{
@@ -135,7 +135,7 @@ const routes = [
name: 'sensors',
component: Sensors,
meta: {
- title: i18n.t('appPageTitle.sensors'),
+ title: i18n.global.t('appPageTitle.sensors'),
},
},
{
@@ -143,7 +143,7 @@ const routes = [
name: 'sessions',
component: Sessions,
meta: {
- title: i18n.t('appPageTitle.sessions'),
+ title: i18n.global.t('appPageTitle.sessions'),
},
},
{
@@ -151,7 +151,7 @@ const routes = [
name: 'user-management',
component: UserManagement,
meta: {
- title: i18n.t('appPageTitle.userManagement'),
+ title: i18n.global.t('appPageTitle.userManagement'),
},
},
{
@@ -159,7 +159,7 @@ const routes = [
name: 'policies',
component: Policies,
meta: {
- title: i18n.t('appPageTitle.policies'),
+ title: i18n.global.t('appPageTitle.policies'),
},
},
{
@@ -167,7 +167,7 @@ const routes = [
name: 'certificates',
component: Certificates,
meta: {
- title: i18n.t('appPageTitle.certificates'),
+ title: i18n.global.t('appPageTitle.certificates'),
},
},
{
@@ -175,7 +175,7 @@ const routes = [
name: 'date-time',
component: DateTime,
meta: {
- title: i18n.t('appPageTitle.dateTime'),
+ title: i18n.global.t('appPageTitle.dateTime'),
},
},
{
@@ -183,7 +183,7 @@ const routes = [
name: 'kvm',
component: Kvm,
meta: {
- title: i18n.t('appPageTitle.kvm'),
+ title: i18n.global.t('appPageTitle.kvm'),
},
},
{
@@ -191,7 +191,7 @@ const routes = [
name: 'firmware',
component: Firmware,
meta: {
- title: i18n.t('appPageTitle.firmware'),
+ title: i18n.global.t('appPageTitle.firmware'),
},
},
{
@@ -199,7 +199,7 @@ const routes = [
name: 'network',
component: Network,
meta: {
- title: i18n.t('appPageTitle.network'),
+ title: i18n.global.t('appPageTitle.network'),
},
},
{
@@ -207,7 +207,7 @@ const routes = [
name: 'power',
component: Power,
meta: {
- title: i18n.t('appPageTitle.power'),
+ title: i18n.global.t('appPageTitle.power'),
},
},
{
@@ -215,7 +215,7 @@ const routes = [
name: 'reboot-bmc',
component: RebootBmc,
meta: {
- title: i18n.t('appPageTitle.rebootBmc'),
+ title: i18n.global.t('appPageTitle.rebootBmc'),
},
},
{
@@ -223,7 +223,7 @@ const routes = [
name: 'serial-over-lan',
component: SerialOverLan,
meta: {
- title: i18n.t('appPageTitle.serialOverLan'),
+ title: i18n.global.t('appPageTitle.serialOverLan'),
exclusiveToRoles: [roles.administrator],
},
},
@@ -232,7 +232,7 @@ const routes = [
name: 'server-power-operations',
component: ServerPowerOperations,
meta: {
- title: i18n.t('appPageTitle.serverPowerOperations'),
+ title: i18n.global.t('appPageTitle.serverPowerOperations'),
},
},
{
@@ -240,7 +240,7 @@ const routes = [
name: 'virtual-media',
component: VirtualMedia,
meta: {
- title: i18n.t('appPageTitle.virtualMedia'),
+ title: i18n.global.t('appPageTitle.virtualMedia'),
exclusiveToRoles: [roles.administrator],
},
},
@@ -249,7 +249,7 @@ const routes = [
name: 'page-not-found',
component: PageNotFound,
meta: {
- title: i18n.t('appPageTitle.pageNotFound'),
+ title: i18n.global.t('appPageTitle.pageNotFound'),
},
},
],