From 0b8cd3b6db230e9dec1b8fabf40c51af9e817439 Mon Sep 17 00:00:00 2001 From: deetz99 <73151365+deetz99@users.noreply.github.com> Date: Tue, 31 Dec 2024 15:35:08 -0800 Subject: [PATCH] Host - UI: Bug fixes (#425) * remove rental doc from required docs when exempt * remove rental doc from requried when pr not required * make sin required * validate all bc id cards as max 1 document * remove pr declaration from review step if user exempt * reset fee widget on variable change * format fax number the same as phone number * bump host version --- .../app/components/form/common/Contact.vue | 3 ++- .../form/AddOwners/input/Person.vue | 3 ++- .../app/components/form/Review/Index.vue | 11 +++++++++- strr-host-pm-web/app/pages/application.vue | 7 ++++--- strr-host-pm-web/app/stores/document.ts | 20 ++++++++++++++----- strr-host-pm-web/app/stores/hostOwner.ts | 4 +++- strr-host-pm-web/package.json | 2 +- strr-platform-web/package.json | 2 +- strr-strata-web/package.json | 2 +- 9 files changed, 39 insertions(+), 15 deletions(-) diff --git a/strr-base-web/app/components/form/common/Contact.vue b/strr-base-web/app/components/form/common/Contact.vue index 68cfafbb..4ff329c4 100644 --- a/strr-base-web/app/components/form/common/Contact.vue +++ b/strr-base-web/app/components/form/common/Contact.vue @@ -49,7 +49,7 @@ defineProps<{ name="fullName" :placeholder="t('label.fullName')" /> -
+
{ id="host-owner-taxNumber" v-model="owner.taxNumber" name="taxNumber" - :placeholder="$t('label.craTaxNumberOpt')" + :placeholder="$t('label.craTaxNumber')" :help="$t('strr.hint.craTaxNumber')" mask="### ### ###" /> @@ -197,6 +197,7 @@ watch(isCompParty, (val) => { :aria-label="$t('label.faxNumberOpt')" name="faxNumber" :placeholder="$t('label.faxNumberOpt')" + :mask="owner.phone.countryCode === '1' ? '(###) ###-####' : '##############'" /> >>() const sectionErrors = ref([]) @@ -65,6 +66,14 @@ const getCompPartyName = computed(() => { } return `[${t('label.completingParty')}]` }) + +const agreedToRentalActListItems = computed(() => { + if (reqStore.hasReqs && (!reqStore.propertyReqs.isPrincipalResidenceRequired || reqStore.prRequirements.prExemptionReason !== undefined)) { + return [{ slot: 'item-1' }, { i18nKey: 'certify.2' }, { i18nKey: 'certify.4' }] + } else { + return [{ slot: 'item-1' }, { i18nKey: 'certify.2' }, { i18nKey: 'certify.3' }, { i18nKey: 'certify.4' }] + } +})