@sumaris-net/ngx-components 2.4.25-rc1 → 2.4.25-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/doc/changelog.md +4 -0
- package/esm2020/src/app/core/form/entity/entity-editor.class.mjs +5 -6
- package/fesm2015/sumaris-net.ngx-components.mjs +4 -4
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +4 -4
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/core/form/entity/entity-editor.class.d.ts +1 -1
|
@@ -28238,8 +28238,8 @@ class AppEntityEditor extends AppTabEditor {
|
|
|
28238
28238
|
// Skip if disable, or already listening
|
|
28239
28239
|
if (this._listenChangesSubscription || !this._enableListenChanges)
|
|
28240
28240
|
return;
|
|
28241
|
-
// Skip if new
|
|
28242
|
-
if (this.isNewData
|
|
28241
|
+
// Skip if new (nothing to listen)
|
|
28242
|
+
if (this.isNewData)
|
|
28243
28243
|
return;
|
|
28244
28244
|
// Listen for changes on server
|
|
28245
28245
|
const subscription = this.listenChanges(this.data.id, {
|
|
@@ -28275,7 +28275,7 @@ class AppEntityEditor extends AppTabEditor {
|
|
|
28275
28275
|
});
|
|
28276
28276
|
}
|
|
28277
28277
|
}
|
|
28278
|
-
|
|
28278
|
+
stopListenChanges() {
|
|
28279
28279
|
this._listenChangesSubscription?.unsubscribe();
|
|
28280
28280
|
}
|
|
28281
28281
|
async updateView(data, opts) {
|
|
@@ -28496,7 +28496,7 @@ class AppEntityEditor extends AppTabEditor {
|
|
|
28496
28496
|
}
|
|
28497
28497
|
async unload(opts) {
|
|
28498
28498
|
await super.unload(opts);
|
|
28499
|
-
this.
|
|
28499
|
+
this.stopListenChanges();
|
|
28500
28500
|
this.form.reset();
|
|
28501
28501
|
this.registerForms();
|
|
28502
28502
|
this.data = null;
|