Skip to content

Commit

Permalink
fix(FSADT1-1039): updating page to reflect new matchers
Browse files Browse the repository at this point in the history
  • Loading branch information
paulushcgcj committed Jan 2, 2024
1 parent 29d0487 commit d6252d4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions frontend/src/dto/CommonTypesDto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,4 +168,5 @@ export interface SubmissionDetailsMatchers {
goodStanding: string
corporationName: string
incorporationNumber: string
contact: string
}
13 changes: 12 additions & 1 deletion frontend/src/pages/SubmissionReviewPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ const data = ref<SubmissionDetails>({
address: [],
matchers: {
goodStanding: '',
legalName: '',
corporationName: '',
incorporationNumber: '',
contact: '',
}
})
Expand Down Expand Up @@ -199,6 +202,9 @@ const matchingData = computed(() => {
if(data.value.matchers.incorporationNumber){
results = [...results, ...data.value.matchers.incorporationNumber.split(',')]
}
if(data.value.matchers.contact){
results = [...results, ...data.value.matchers.contact.split(',')]
}
return results
})
</script>
Expand Down Expand Up @@ -304,6 +310,11 @@ const matchingData = computed(() => {
:key="duplicatedClient">
Incorporation number: <a target="_blank" :href="`https://${greenDomain}/int/client/client02MaintenanceAction.do?bean.clientNumber=${duplicatedClient.trim()}`">{{duplicatedClient.trim()}}</a>
</li>
<li
v-for="duplicatedClient in data.matchers.contact.split(',')"
:key="duplicatedClient">
Contact: <a target="_blank" :href="`https://${greenDomain}/int/client/client02MaintenanceAction.do?bean.clientNumber=${duplicatedClient.trim()}`">{{duplicatedClient.trim()}}</a>
</li>
</ul>
</div>
</cds-actionable-notification>
Expand Down

0 comments on commit d6252d4

Please sign in to comment.