mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-29 04:31:08 -04:00
Merge branch 'set-default-country' into 'master'
set "United States" as default country for company in installation wizard See merge request mohit.panjvani/crater-web!1442
This commit is contained in:
@ -181,6 +181,11 @@ onMounted(async () => {
|
|||||||
isFetchingInitialData.value = true
|
isFetchingInitialData.value = true
|
||||||
await globalStore.fetchCountries()
|
await globalStore.fetchCountries()
|
||||||
isFetchingInitialData.value = false
|
isFetchingInitialData.value = false
|
||||||
|
|
||||||
|
// set default country
|
||||||
|
companyForm.address.country_id = globalStore.countries.find((country) => {
|
||||||
|
return country.code == 'US'
|
||||||
|
})?.id
|
||||||
})
|
})
|
||||||
|
|
||||||
const rules = {
|
const rules = {
|
||||||
|
|||||||
Reference in New Issue
Block a user