Skip to content

Commit a1a8ca9

Browse files
authored
Fix for suspend dialog text (bcgov#3400)
1 parent e17ad3f commit a1a8ca9

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

auth-web/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

auth-web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "auth-web",
3-
"version": "2.10.6",
3+
"version": "2.10.7",
44
"appName": "Auth Web",
55
"sbcName": "SBC Common Components",
66
"private": true,

auth-web/src/components/auth/account-settings/account-info/AccountInfo.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@
199199
</template>
200200
<template #text>
201201
<p class="px-10">
202-
{{ dialogText }}<br>
202+
{{ $t(dialogText) }}<br>
203203
</p>
204204
<v-form
205205
id="suspensionReasonForm"

auth-web/tests/unit/components/AccountInfo.spec.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,8 @@ describe('AccountInfo.vue', () => {
176176
const MyStub = {
177177
template: '<div />'
178178
}
179+
const $t = () => `test`
180+
179181
wrapper = mount(AccountInfo, {
180182
localVue,
181183
vuetify,
@@ -194,7 +196,8 @@ describe('AccountInfo.vue', () => {
194196
'v-btn': {
195197
template: `<button @click='$listeners.click'></button>`
196198
}
197-
}
199+
},
200+
mocks: { $t }
198201
})
199202
expect(wrapper.find("[data-test='modal-suspend-account']").exists()).toBe(true)
200203
expect(wrapper.vm.isSuspensionReasonFormValid).toBeFalsy()

0 commit comments

Comments
 (0)