set loading in correction and return form
This commit is contained in:
@@ -43,7 +43,7 @@
|
||||
|
||||
<pos-order-price-info-card [info]="totalPriceInfo" />
|
||||
|
||||
<app-form-footer-actions [loading]="submitLoading()" (onCancel)="close()" />
|
||||
<app-form-footer-actions [loading]="loading || submitLoading()" (onCancel)="close()" />
|
||||
</form>
|
||||
|
||||
<shared-light-bottomsheet
|
||||
|
||||
@@ -42,6 +42,7 @@ export class SharedCorrectionFormComponent extends AbstractForm<
|
||||
@Input() beforeSubmit?: (payload: CorrectionInvoiceFormValue) => Promise<boolean> | boolean;
|
||||
@Input({ required: true }) invoiceDate!: string;
|
||||
@Input() visible = false;
|
||||
@Input() loading = false;
|
||||
|
||||
form = this.fb.group({
|
||||
invoice_date: [this.invoiceDate],
|
||||
|
||||
@@ -22,5 +22,5 @@
|
||||
|
||||
<pos-order-price-info-card [info]="totalPriceInfo" />
|
||||
|
||||
<app-form-footer-actions (onCancel)="close()" />
|
||||
<app-form-footer-actions [loading]="loading || submitLoading()" (onCancel)="close()" />
|
||||
</form>
|
||||
|
||||
@@ -50,6 +50,7 @@
|
||||
[initialValues]="invoice.items"
|
||||
[invoiceDate]="invoice.invoice_date"
|
||||
[beforeSubmit]="beforeCorrectionSubmitHandler.bind(this)"
|
||||
[loading]="correctionLoading || false"
|
||||
(onSubmit)="correctionSubmit($event)"
|
||||
(onClose)="cancelCorrection()" />
|
||||
</shared-light-bottomsheet>
|
||||
|
||||
Reference in New Issue
Block a user