@sumaris-net/ngx-components 18.12.12 → 18.12.13
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/esm2022/src/app/core/table/async-table.class.mjs +5 -3
- package/esm2022/src/app/core/table/table.class.mjs +5 -3
- package/fesm2022/sumaris-net.ngx-components.mjs +8 -4
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/shared/inputs.d.ts +1 -1
- package/src/assets/manifest.json +1 -1
|
@@ -35265,8 +35265,10 @@ class AppTable {
|
|
|
35265
35265
|
}
|
|
35266
35266
|
// If the row exists (has an id)
|
|
35267
35267
|
else {
|
|
35268
|
-
//
|
|
35269
|
-
if
|
|
35268
|
+
// Call cancel function ,
|
|
35269
|
+
// - if confirmation will be called before
|
|
35270
|
+
// - or if row is pristine (not dirty)
|
|
35271
|
+
if (this.confirmBeforeCancel || !row.dirty) {
|
|
35270
35272
|
this.cancelExistingRow(event, row, { keepEditing: false });
|
|
35271
35273
|
return;
|
|
35272
35274
|
}
|
|
@@ -38030,8 +38032,10 @@ class AppAsyncTable {
|
|
|
38030
38032
|
}
|
|
38031
38033
|
// If the row exists (has an id)
|
|
38032
38034
|
else {
|
|
38033
|
-
//
|
|
38034
|
-
if
|
|
38035
|
+
// Call cancel function ,
|
|
38036
|
+
// - if confirmation will be called before
|
|
38037
|
+
// - or if row is pristine (not dirty)
|
|
38038
|
+
if (this.confirmBeforeCancel || !row.dirty) {
|
|
38035
38039
|
await this.cancelExistingRow(event, row, { keepEditing: false });
|
|
38036
38040
|
return;
|
|
38037
38041
|
}
|