Skip to content

Commit

Permalink
Merge branch 'main' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
micnori committed Nov 22, 2024
2 parents 73b132c + c83c236 commit fa51ac5
Show file tree
Hide file tree
Showing 3 changed files with 129 additions and 75 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
></v-autocomplete>
</v-col>
</v-row>
<v-row v-if="$v.country.$model === 'Italy'">
<v-row v-if="$v.country.$model === 'Italia'">
<v-col>
<v-autocomplete
label="Regione"
Expand Down Expand Up @@ -317,12 +317,12 @@ export default {
},
province: {
required: requiredIf(function (model) {
return model.country === "Italy";
return model.country === "Italia";
}),
},
region: {
required: requiredIf(function (model) {
return model.country === "Italy";
return model.country === "Italia";
}),
},
country: {
Expand Down Expand Up @@ -618,7 +618,7 @@ export default {
{ name: "Ireland", code: "IE" },
{ name: "Isle of Man", code: "IM" },
{ name: "Israel", code: "IL" },
{ name: "Italy", code: "IT" },
{ name: "Italia", code: "IT" },
{ name: "Jamaica", code: "JM" },
{ name: "Japan", code: "JP" },
{ name: "Jersey", code: "JE" },
Expand Down Expand Up @@ -792,6 +792,8 @@ export default {
for (const [key] of Object.entries(company)) {
this[key] = company[key];
}
if (this.country==="Italy" ) this.country = "Italia";
},
onChangeUrl(url) {
this.imgUrl = url;
Expand Down Expand Up @@ -852,7 +854,7 @@ export default {
};
},
changeAddress() {
if (this.country == "Italy") {
if (this.country == "Italia") {
this.inputAddress =
this.address +
" " +
Expand Down Expand Up @@ -905,7 +907,11 @@ export default {
this.$v.$touch();
}
},
fixCountry() {
if (this.$v.country.$model==="Italy" || this.$v.country.$model==="") this.$v.country.$model = "Italia";
},
setModalData() {
this.fixCountry();
if (this.typeCall == "add") {
this.initCompany();
this.popup.title = "Aggiungi Azienda";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
v-model.trim="$v.location.$model"
:items="listaSedi"
:error-messages="locationErrors"
:item-text="item=>`${item.id}${item.name?(' - '+item.name):''}`"
:item-text="item=>`${item.name?(item.name + ' - '):''} codice ${item.id}`"
item-value="id"
required
@input="$v.location.$touch()"
Expand Down
Loading

0 comments on commit fa51ac5

Please sign in to comment.