Skip to content

Commit

Permalink
Fix Vue3 i18n compatibility for Dumps pages
Browse files Browse the repository at this point in the history
This follows 883a0d5 approach when the
Dumps code was somehow missed during the refactoring.

The change fixes operation for the page showing list of dumps, before it
was blank due to an exception.

Change-Id: I49daa4fdaea1e8d98e4964acff9cb0bda5d8d573
Signed-off-by: Paul Fertser <[email protected]>
  • Loading branch information
paulfertser committed Jan 24, 2025
1 parent 223fe5b commit 6e53b14
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/views/Logs/Dumps/Dumps.vue
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ import SearchFilterMixin, {
import TableFilter from '@/components/Global/TableFilter';
import TableFilterMixin from '@/components/Mixins/TableFilterMixin';
import i18n from '@/i18n';
import { useI18n } from 'vue-i18n';
export default {
components: {
Expand Down Expand Up @@ -203,6 +204,7 @@ export default {
},
data() {
return {
$t: useI18n().t,
isBusy: true,
fields: [
{
Expand Down
2 changes: 2 additions & 0 deletions src/views/Logs/Dumps/DumpsForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import Alert from '@/components/Global/Alert';
import BVToastMixin from '@/components/Mixins/BVToastMixin';
import VuelidateMixin from '@/components/Mixins/VuelidateMixin.js';
import i18n from '@/i18n';
import { useI18n } from 'vue-i18n';
export default {
components: { Alert, ModalConfirmation },
Expand All @@ -51,6 +52,7 @@ export default {
},
data() {
return {
$t: useI18n().t,
selectedDumpType: null,
dumpTypeOptions: [
{ value: 'bmc', text: i18n.global.t('pageDumps.form.bmcDump') },
Expand Down
2 changes: 2 additions & 0 deletions src/views/Logs/Dumps/DumpsModalConfirmation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
import StatusIcon from '@/components/Global/StatusIcon';
import VuelidateMixin from '@/components/Mixins/VuelidateMixin.js';
import { useVuelidate } from '@vuelidate/core';
import { useI18n } from 'vue-i18n';
export default {
components: { StatusIcon },
Expand All @@ -52,6 +53,7 @@ export default {
},
data() {
return {
$t: useI18n().t,
confirmed: false,
};
},
Expand Down

0 comments on commit 6e53b14

Please sign in to comment.