@sumaris-net/ngx-components 2.3.5 → 2.3.6
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/form/entity/entity-editor.class.mjs +6 -5
- package/fesm2015/sumaris-net.ngx-components.mjs +4 -3
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +4 -3
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -27982,9 +27982,10 @@ class AppEntityEditor extends AppTabEditor {
|
|
|
27982
27982
|
this._listenChangesSubscription = this.listenChanges(this.data.id, {
|
|
27983
27983
|
interval: this._listenIntervalInSeconds
|
|
27984
27984
|
})
|
|
27985
|
-
.pipe(filter(isNotNil),
|
|
27986
|
-
|
|
27987
|
-
|
|
27985
|
+
.pipe(filter(isNotNil), mergeMap((data) => this.saving
|
|
27986
|
+
// If saving, wait end, to avoid to detect self changes
|
|
27987
|
+
? firstFalse(this.savingSubject).pipe(mapTo(data), debounceTime(500))
|
|
27988
|
+
: of(data)))
|
|
27988
27989
|
.subscribe((data) => {
|
|
27989
27990
|
const isNewer = isMoment(data.updateDate) && data.updateDate.isAfter(this.data.updateDate);
|
|
27990
27991
|
if (!isNewer)
|