Skip to content

Commit

Permalink
i18n fix after vue3 merge to master
Browse files Browse the repository at this point in the history
Fix i18n issue in the Power restore policy, Inventory LEDs, and User
management page.

After merge the vue3 code to master the i18n Power restore policy,
Inventory LEDs, and User management page  got conflicts and old code
retrieved in master. So unable to render the Power restore policy,
Inventory LEDs and unable to disable the user in user management page

change the i18n.t method to i18n.global.t for the vue3 support.

Change-Id: I46f3f56632308ceaee321dd896e16e922d964b60
Signed-off-by: Surya Venkatesan <[email protected]>
  • Loading branch information
suryav9724 committed Oct 4, 2024
1 parent 1b89e59 commit 825059a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/store/modules/Settings/PowerPolicyStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const PowerPolicyStore = {
}) => {
let powerPoliciesData = PowerRestorePolicyTypes.enum.map(
(powerState) => {
let desc = `${i18n.t(
let desc = `${i18n.global.t(
`pagePowerRestorePolicy.policies.${powerState}`,
)} - ${
PowerRestorePolicyTypes.enumDescriptions[powerState]
Expand Down
2 changes: 1 addition & 1 deletion src/views/HardwareStatus/Inventory/InventoryTableFans.vue
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export default {
},
{
key: 'statusState',
label: this.$t('pageInventory.table.state'),
label: i18n.global.t('pageInventory.table.state'),
formatter: this.dataFormatter,
tdClass: 'text-nowrap',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ export default {
},
{
key: 'statusState',
label: this.$t('pageInventory.table.state'),
label: i18n.global.t('pageInventory.table.state'),
formatter: this.dataFormatter,
tdClass: 'text-nowrap',
},
Expand Down
8 changes: 4 additions & 4 deletions src/views/SecurityAndAccess/UserManagement/UserManagement.vue
Original file line number Diff line number Diff line change
Expand Up @@ -366,20 +366,20 @@ export default {
case 'disable':
this.$bvModal
.msgBoxConfirm(
this.$tc(
i18n.global.t(
'pageUserManagement.modal.batchDisableConfirmMessage',
this.selectedRows.length,
),
{
title: this.$tc(
title: i18n.global.t(
'pageUserManagement.disableUser',
this.selectedRows.length,
),
okTitle: this.$tc(
okTitle: i18n.global.t(
'pageUserManagement.disableUser',
this.selectedRows.length,
),
cancelTitle: this.$t('global.action.cancel'),
cancelTitle: i18n.global.t('global.action.cancel'),
autoFocusButton: 'ok',
},
)
Expand Down

0 comments on commit 825059a

Please sign in to comment.