ngx-render-material-forms 2.2.6 → 2.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/components/add-on-products/add-on-products.component.mjs +3 -3
- package/fesm2015/ngx-render-material-forms.js +2 -2
- package/fesm2015/ngx-render-material-forms.mjs.map +1 -1
- package/fesm2020/ngx-render-material-forms.js +2 -2
- package/fesm2020/ngx-render-material-forms.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -3530,7 +3530,7 @@ class AddOnProductsComponent {
|
|
|
3530
3530
|
this.removeColumn('inventory');
|
|
3531
3531
|
}
|
|
3532
3532
|
if (!this.showCost) {
|
|
3533
|
-
this.removeColumn('
|
|
3533
|
+
this.removeColumn('cost');
|
|
3534
3534
|
}
|
|
3535
3535
|
}
|
|
3536
3536
|
removeColumn(columnName) {
|
|
@@ -3553,7 +3553,7 @@ class AddOnProductsComponent {
|
|
|
3553
3553
|
value: [product?.value || ''],
|
|
3554
3554
|
otherInformation0: [product?.otherInformation0 || ''],
|
|
3555
3555
|
otherInformation1: [product?.otherInformation1 || ''],
|
|
3556
|
-
otherInformation2: [product?.otherInformation2 || '', Validators.required]
|
|
3556
|
+
otherInformation2: [product?.otherInformation2 || '', this.showCost ? Validators.required : []]
|
|
3557
3557
|
}));
|
|
3558
3558
|
});
|
|
3559
3559
|
selectedProductsArray.controls.forEach(control => {
|