+
-
+
@@ -160,11 +188,13 @@ const addId = useId()
-
+
diff --git a/strr-platform-web/app/components/form/host/Contact.vue b/strr-platform-web/app/components/form/host/Contact.vue
index e5bd3d4a..76f97fa0 100644
--- a/strr-platform-web/app/components/form/host/Contact.vue
+++ b/strr-platform-web/app/components/form/host/Contact.vue
@@ -105,7 +105,6 @@ watch(secondForm, () => {
v-model:city="primaryContact.address.city"
v-model:region="primaryContact.address.region"
v-model:postal-code="primaryContact.address.postalCode"
- v-model:location-description="primaryContact.address.locationDescription"
:schema-prefix="'address.'"
:enable-address-complete="enableAddressComplete"
/>
@@ -183,7 +182,6 @@ watch(secondForm, () => {
v-model:city="secondaryContact.address.city"
v-model:region="secondaryContact.address.region"
v-model:postal-code="secondaryContact.address.postalCode"
- v-model:location-description="secondaryContact.address.locationDescription"
:schema-prefix="'address.'"
:enable-address-complete="enableAddressComplete"
/>
diff --git a/strr-platform-web/app/components/form/platform/BusinessDetails.vue b/strr-platform-web/app/components/form/platform/BusinessDetails.vue
index db41126a..b46bac56 100644
--- a/strr-platform-web/app/components/form/platform/BusinessDetails.vue
+++ b/strr-platform-web/app/components/form/platform/BusinessDetails.vue
@@ -38,14 +38,17 @@ watch(() => platformBusiness.value.regOfficeOrAtt.sameAsMailAddress,
watch(() => platformBusiness.value.hasRegOffAtt,
(newVal, oldVal) => {
- // reset regOfficeOrAtt if hasRegOffAtt radio set to false
+ // reset regOfficeOrAtt if hasRegOffAtt radio set to false
if (!newVal) {
platformBusiness.value.regOfficeOrAtt.attorneyName = ''
platformBusiness.value.regOfficeOrAtt.sameAsMailAddress = false
Object.keys(platformBusiness.value.regOfficeOrAtt.mailingAddress).forEach((key) => {
- // @ts-expect-error - ts doesnt recognize key type
+ // @ts-expect-error - ts doesnt recognize key type
platformBusiness.value.regOfficeOrAtt.mailingAddress[key] = ''
})
+ } else {
+ platformBusiness.value.regOfficeOrAtt.mailingAddress.country = 'CA'
+ platformBusiness.value.regOfficeOrAtt.mailingAddress.region = 'BC'
}
// revalidate fields to update/remove form errors if user clicks yes or no
@@ -91,11 +94,10 @@ watch(canadaPostAddress, (newAddress) => {
platformBusiness.value.mailingAddress.region = newAddress.region
platformBusiness.value.mailingAddress.postalCode = newAddress.postalCode
} else if (newAddress) {
+ // NOTE: country and region are not set because they are disabled for regOfficeOrAtt.mailingAddress
platformBusiness.value.regOfficeOrAtt.mailingAddress.street = newAddress.street
platformBusiness.value.regOfficeOrAtt.mailingAddress.streetAdditional = newAddress.streetAdditional
- platformBusiness.value.regOfficeOrAtt.mailingAddress.country = newAddress.country
platformBusiness.value.regOfficeOrAtt.mailingAddress.city = newAddress.city
- platformBusiness.value.regOfficeOrAtt.mailingAddress.region = newAddress.region
platformBusiness.value.regOfficeOrAtt.mailingAddress.postalCode = newAddress.postalCode
}
}
@@ -199,7 +201,6 @@ onMounted(async () => {
v-model:city="platformBusiness.mailingAddress.city"
v-model:region="platformBusiness.mailingAddress.region"
v-model:postal-code="platformBusiness.mailingAddress.postalCode"
- v-model:location-description="platformBusiness.mailingAddress.locationDescription"
:schema-prefix="'mailingAddress.'"
:enable-address-complete="enableAddressComplete"
/>
@@ -256,9 +257,9 @@ onMounted(async () => {
v-model:city="platformBusiness.regOfficeOrAtt.mailingAddress.city"
v-model:region="platformBusiness.regOfficeOrAtt.mailingAddress.region"
v-model:postal-code="platformBusiness.regOfficeOrAtt.mailingAddress.postalCode"
- v-model:location-description="platformBusiness.regOfficeOrAtt.mailingAddress.locationDescription"
:schema-prefix="'regOfficeOrAtt.mailingAddress.'"
:enable-address-complete="enableAddressComplete"
+ :disabled-fields="['country', 'region']"
/>