Skip to content

Commit 6e53b14

Browse files
committed
Fix Vue3 i18n compatibility for Dumps pages
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]>
1 parent 223fe5b commit 6e53b14

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

src/views/Logs/Dumps/Dumps.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ import SearchFilterMixin, {
172172
import TableFilter from '@/components/Global/TableFilter';
173173
import TableFilterMixin from '@/components/Mixins/TableFilterMixin';
174174
import i18n from '@/i18n';
175+
import { useI18n } from 'vue-i18n';
175176
176177
export default {
177178
components: {
@@ -203,6 +204,7 @@ export default {
203204
},
204205
data() {
205206
return {
207+
$t: useI18n().t,
206208
isBusy: true,
207209
fields: [
208210
{

src/views/Logs/Dumps/DumpsForm.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ import Alert from '@/components/Global/Alert';
4040
import BVToastMixin from '@/components/Mixins/BVToastMixin';
4141
import VuelidateMixin from '@/components/Mixins/VuelidateMixin.js';
4242
import i18n from '@/i18n';
43+
import { useI18n } from 'vue-i18n';
4344
4445
export default {
4546
components: { Alert, ModalConfirmation },
@@ -51,6 +52,7 @@ export default {
5152
},
5253
data() {
5354
return {
55+
$t: useI18n().t,
5456
selectedDumpType: null,
5557
dumpTypeOptions: [
5658
{ value: 'bmc', text: i18n.global.t('pageDumps.form.bmcDump') },

src/views/Logs/Dumps/DumpsModalConfirmation.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
import StatusIcon from '@/components/Global/StatusIcon';
4242
import VuelidateMixin from '@/components/Mixins/VuelidateMixin.js';
4343
import { useVuelidate } from '@vuelidate/core';
44+
import { useI18n } from 'vue-i18n';
4445
4546
export default {
4647
components: { StatusIcon },
@@ -52,6 +53,7 @@ export default {
5253
},
5354
data() {
5455
return {
56+
$t: useI18n().t,
5557
confirmed: false,
5658
};
5759
},

0 commit comments

Comments
 (0)