Skip to content

Commit e81665b

Browse files
committed
ecer-4786 preview before submission
1 parent e514cf9 commit e81665b

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/inputs/EceInternationalCertificationPreview.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
<v-divider v-if="index !== 0" :thickness="2" color="grey-lightest" class="border-opacity-100 my-6" />
66
<v-row>
77
<v-col cols="4">
8-
<p class="small">Country of Institution TODO: FIX countryName</p>
8+
<p class="small">Country of Institution</p>
99
</v-col>
1010
<v-col>
11-
<p class="small font-weight-bold">{{ `${internationalCertificate.countryId}` }}</p>
11+
<p class="small font-weight-bold">{{ `${configStore.countryName(internationalCertificate.countryId || '')}` }}</p>
1212
</v-col>
1313
</v-row>
1414
<v-row>
@@ -141,6 +141,7 @@ import PreviewCard from "@/components/PreviewCard.vue";
141141
import { formatDate } from "@/utils/format";
142142
import type { Components } from "@/types/openapi";
143143
import { useWizardStore } from "@/store/wizard";
144+
import { useConfigStore } from "@/store/config";
144145
145146
export default defineComponent({
146147
name: "EceInternationalCertificationPreview",
@@ -149,8 +150,11 @@ export default defineComponent({
149150
},
150151
setup: () => {
151152
const wizardStore = useWizardStore();
153+
const configStore = useConfigStore();
154+
152155
return {
153156
wizardStore,
157+
configStore,
154158
formatDate,
155159
};
156160
},

src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/store/config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ export const useConfigStore = defineStore("config", {
5454
provinceName(state) {
5555
return (provinceId: string) => state.provinceList.find((province) => province.provinceId === provinceId)?.provinceName;
5656
},
57+
countryName(state) {
58+
return (countryId: string) => state.countryList.find((country) => country.countryId === countryId)?.countryName;
59+
},
5760
canada(state) {
5861
return state.countryList.find((country) => country.countryName!.toLowerCase() === "canada");
5962
},

0 commit comments

Comments
 (0)