feat: remove AGENT.md and add new agents.md with updated repository-specific instructions
refactor: update shared-saleInvoice.component.ts to simplify SKU code handling refactor: modify goods.component.html to optimize payload form dialog rendering fix: adjust goods.component.ts to ensure payload form visibility logic is correct fix: update order-section.component.ts to improve customer dialog and payment form visibility style: enhance form.component.html button styling for better responsiveness fix: change abstract-form.ts to reset form with default values on initialization refactor: streamline page-data-list-grid-view.component.html for better caption handling refactor: update page-data-list-grid-view.component.ts to remove unused methods and improve readability refactor: simplify page-data-list-table-view.component.html and remove redundant code refactor: clean up page-data-list-table-view.component.ts by removing unnecessary methods feat: enhance page-data-list.component.html with new caption and paginator templates feat: create page-data-value.component.ts to encapsulate data rendering logic for grid and table views style: update presets.ts to modify color palette for better UI consistency
This commit is contained in:
@@ -37,14 +37,14 @@ export abstract class AbstractForm<
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.form.patchValue(this.initialValues ?? {});
|
||||
this.form.reset(this.initialValues ?? this.defaultValues);
|
||||
// Object.entries(this.form.controls).forEach(([key, control]) => {
|
||||
// console.log(key, control);
|
||||
// });
|
||||
}
|
||||
|
||||
ngOnChanges() {
|
||||
this.form.patchValue(this.initialValues ?? {});
|
||||
this.form.reset(this.initialValues ?? this.defaultValues);
|
||||
}
|
||||
|
||||
onSuccess(response: Response): void {}
|
||||
|
||||
Reference in New Issue
Block a user