Skip to content

Commit

Permalink
Fix long loading of the address for public order
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Rusakov authored and lanseg committed Dec 12, 2024
1 parent 438bd81 commit 94fd7c0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/account/new-order/new-order.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -368,10 +368,10 @@ export class NewOrderComponent implements OnInit, OnDestroy {
this.customerCtrl?.setValue('');
this.isCustomerSelected = true;
this.isNewInvoiceContact = true;

this.updateContactForm('2');
for (const key in this.invoiceContactsFormControls) {
if (key === 'country') {
this.contactFormGroup.get(key)?.setValue('Suisse');
this.contactFormGroup.get(key)?.setValue($localize`Suisse`);
} else {
this.contactFormGroup.get(key)?.setValue('');
}
Expand Down
7 changes: 7 additions & 0 deletions src/locale/messages.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,13 @@
<context context-type="linenumber">102</context>
</context-group>
</trans-unit>
<trans-unit id="7734965975022713233" datatype="html">
<source>Suisse</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/account/new-order/new-order.component.ts</context>
<context context-type="linenumber">374</context>
</context-group>
</trans-unit>
<trans-unit id="order.delete" datatype="html">
<source> Supprimer </source>
<context-group purpose="location">
Expand Down

0 comments on commit 94fd7c0

Please sign in to comment.