Skip to content

Commit 142fe91

Browse files
committed
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 <[email protected]>
1 parent b05410f commit 142fe91

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

src/env/router/intel.js

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@ const routes = [
4444
name: 'login',
4545
component: Login,
4646
meta: {
47-
title: i18n.t('appPageTitle.login'),
47+
title: i18n.global.t('appPageTitle.login'),
4848
},
4949
},
5050
{
5151
path: '/change-password',
5252
name: 'change-password',
5353
component: ChangePassword,
5454
meta: {
55-
title: i18n.t('appPageTitle.changePassword'),
55+
title: i18n.global.t('appPageTitle.changePassword'),
5656
requiresAuth: true,
5757
},
5858
},
@@ -70,15 +70,15 @@ const routes = [
7070
name: 'serial-over-lan-console',
7171
component: SerialOverLanConsole,
7272
meta: {
73-
title: i18n.t('appPageTitle.serialOverLan'),
73+
title: i18n.global.t('appPageTitle.serialOverLan'),
7474
},
7575
},
7676
{
7777
path: 'kvm',
7878
name: 'kvm-console',
7979
component: KvmConsole,
8080
meta: {
81-
title: i18n.t('appPageTitle.kvm'),
81+
title: i18n.global.t('appPageTitle.kvm'),
8282
},
8383
},
8484
],
@@ -95,135 +95,135 @@ const routes = [
9595
name: 'overview',
9696
component: Overview,
9797
meta: {
98-
title: i18n.t('appPageTitle.overview'),
98+
title: i18n.global.t('appPageTitle.overview'),
9999
},
100100
},
101101
{
102102
path: '/profile-settings',
103103
name: 'profile-settings',
104104
component: ProfileSettings,
105105
meta: {
106-
title: i18n.t('appPageTitle.profileSettings'),
106+
title: i18n.global.t('appPageTitle.profileSettings'),
107107
},
108108
},
109109
{
110110
path: '/logs/event-logs',
111111
name: 'event-logs',
112112
component: EventLogs,
113113
meta: {
114-
title: i18n.t('appPageTitle.eventLogs'),
114+
title: i18n.global.t('appPageTitle.eventLogs'),
115115
},
116116
},
117117
{
118118
path: '/logs/post-code-logs',
119119
name: 'post-code-logs',
120120
component: PostCodeLogs,
121121
meta: {
122-
title: i18n.t('appPageTitle.postCodeLogs'),
122+
title: i18n.global.t('appPageTitle.postCodeLogs'),
123123
},
124124
},
125125
{
126126
path: '/hardware-status/inventory',
127127
name: 'inventory',
128128
component: Inventory,
129129
meta: {
130-
title: i18n.t('appPageTitle.inventory'),
130+
title: i18n.global.t('appPageTitle.inventory'),
131131
},
132132
},
133133
{
134134
path: '/hardware-status/sensors',
135135
name: 'sensors',
136136
component: Sensors,
137137
meta: {
138-
title: i18n.t('appPageTitle.sensors'),
138+
title: i18n.global.t('appPageTitle.sensors'),
139139
},
140140
},
141141
{
142142
path: '/security-and-access/sessions',
143143
name: 'sessions',
144144
component: Sessions,
145145
meta: {
146-
title: i18n.t('appPageTitle.sessions'),
146+
title: i18n.global.t('appPageTitle.sessions'),
147147
},
148148
},
149149
{
150150
path: '/security-and-access/user-management',
151151
name: 'user-management',
152152
component: UserManagement,
153153
meta: {
154-
title: i18n.t('appPageTitle.userManagement'),
154+
title: i18n.global.t('appPageTitle.userManagement'),
155155
},
156156
},
157157
{
158158
path: '/security-and-access/policies',
159159
name: 'policies',
160160
component: Policies,
161161
meta: {
162-
title: i18n.t('appPageTitle.policies'),
162+
title: i18n.global.t('appPageTitle.policies'),
163163
},
164164
},
165165
{
166166
path: '/security-and-access/certificates',
167167
name: 'certificates',
168168
component: Certificates,
169169
meta: {
170-
title: i18n.t('appPageTitle.certificates'),
170+
title: i18n.global.t('appPageTitle.certificates'),
171171
},
172172
},
173173
{
174174
path: '/settings/date-time',
175175
name: 'date-time',
176176
component: DateTime,
177177
meta: {
178-
title: i18n.t('appPageTitle.dateTime'),
178+
title: i18n.global.t('appPageTitle.dateTime'),
179179
},
180180
},
181181
{
182182
path: '/operations/kvm',
183183
name: 'kvm',
184184
component: Kvm,
185185
meta: {
186-
title: i18n.t('appPageTitle.kvm'),
186+
title: i18n.global.t('appPageTitle.kvm'),
187187
},
188188
},
189189
{
190190
path: '/operations/firmware',
191191
name: 'firmware',
192192
component: Firmware,
193193
meta: {
194-
title: i18n.t('appPageTitle.firmware'),
194+
title: i18n.global.t('appPageTitle.firmware'),
195195
},
196196
},
197197
{
198198
path: '/settings/network',
199199
name: 'network',
200200
component: Network,
201201
meta: {
202-
title: i18n.t('appPageTitle.network'),
202+
title: i18n.global.t('appPageTitle.network'),
203203
},
204204
},
205205
{
206206
path: '/resource-management/power',
207207
name: 'power',
208208
component: Power,
209209
meta: {
210-
title: i18n.t('appPageTitle.power'),
210+
title: i18n.global.t('appPageTitle.power'),
211211
},
212212
},
213213
{
214214
path: '/operations/reboot-bmc',
215215
name: 'reboot-bmc',
216216
component: RebootBmc,
217217
meta: {
218-
title: i18n.t('appPageTitle.rebootBmc'),
218+
title: i18n.global.t('appPageTitle.rebootBmc'),
219219
},
220220
},
221221
{
222222
path: '/operations/serial-over-lan',
223223
name: 'serial-over-lan',
224224
component: SerialOverLan,
225225
meta: {
226-
title: i18n.t('appPageTitle.serialOverLan'),
226+
title: i18n.global.t('appPageTitle.serialOverLan'),
227227
exclusiveToRoles: [roles.administrator],
228228
},
229229
},
@@ -232,15 +232,15 @@ const routes = [
232232
name: 'server-power-operations',
233233
component: ServerPowerOperations,
234234
meta: {
235-
title: i18n.t('appPageTitle.serverPowerOperations'),
235+
title: i18n.global.t('appPageTitle.serverPowerOperations'),
236236
},
237237
},
238238
{
239239
path: '/operations/virtual-media',
240240
name: 'virtual-media',
241241
component: VirtualMedia,
242242
meta: {
243-
title: i18n.t('appPageTitle.virtualMedia'),
243+
title: i18n.global.t('appPageTitle.virtualMedia'),
244244
exclusiveToRoles: [roles.administrator],
245245
},
246246
},
@@ -249,7 +249,7 @@ const routes = [
249249
name: 'page-not-found',
250250
component: PageNotFound,
251251
meta: {
252-
title: i18n.t('appPageTitle.pageNotFound'),
252+
title: i18n.global.t('appPageTitle.pageNotFound'),
253253
},
254254
},
255255
],

0 commit comments

Comments
 (0)