@sumaris-net/ngx-components 2.5.2-rc1 → 2.5.2-rc2
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/src/app/core/table/async-table.class.mjs +23 -20
- package/fesm2015/sumaris-net.ngx-components.mjs +22 -19
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +22 -19
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -31030,25 +31030,28 @@ class AppAsyncTable {
|
|
|
31030
31030
|
this.onConfirmEditCreateRow.next(row);
|
|
31031
31031
|
return true; // Continue
|
|
31032
31032
|
}
|
|
31033
|
-
if (row.validator) {
|
|
31034
|
-
|
|
31035
|
-
|
|
31036
|
-
|
|
31037
|
-
|
|
31038
|
-
|
|
31039
|
-
|
|
31040
|
-
|
|
31041
|
-
|
|
31042
|
-
|
|
31043
|
-
|
|
31044
|
-
|
|
31045
|
-
|
|
31046
|
-
|
|
31047
|
-
|
|
31048
|
-
|
|
31049
|
-
|
|
31050
|
-
|
|
31051
|
-
|
|
31033
|
+
// if (row.validator) {
|
|
31034
|
+
// // If pending: Wait end of validation
|
|
31035
|
+
// // TODO: remove when using async isValid() function
|
|
31036
|
+
// if (row.pending) {
|
|
31037
|
+
// await AppFormUtils.waitWhilePending(row.validator);
|
|
31038
|
+
// }
|
|
31039
|
+
//
|
|
31040
|
+
// // NOT confirmed = row has error
|
|
31041
|
+
// if (this.debug) {
|
|
31042
|
+
// console.warn('[table] Cannot confirm row, because invalid');
|
|
31043
|
+
// AppFormUtils.logFormErrors(row.validator, '[table] ');
|
|
31044
|
+
// }
|
|
31045
|
+
//
|
|
31046
|
+
// // fix: mark all controls as touched to show errors
|
|
31047
|
+
// row.validator.markAllAsTouched();
|
|
31048
|
+
//
|
|
31049
|
+
// // Compute row error, and propagate to table's error
|
|
31050
|
+
// if (this.propagateRowError) {
|
|
31051
|
+
// const error = this.getRowError(row);
|
|
31052
|
+
// this.setError(error);
|
|
31053
|
+
// }
|
|
31054
|
+
// }
|
|
31052
31055
|
// Not confirmed
|
|
31053
31056
|
return false;
|
|
31054
31057
|
});
|