@sumaris-net/ngx-components 2.2.1-rc5 → 2.2.1-rc7

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.
@@ -13854,7 +13854,7 @@ class AppForm {
13854
13854
  this.form?.disable(opts);
13855
13855
  if (this._enable) {
13856
13856
  this._enable = false;
13857
- if (!opts || opts.emitEvent !== true)
13857
+ if (!opts || opts.emitEvent !== false)
13858
13858
  this.markForCheck();
13859
13859
  }
13860
13860
  }
@@ -13862,7 +13862,7 @@ class AppForm {
13862
13862
  this.form?.enable(opts);
13863
13863
  if (!this._enable) {
13864
13864
  this._enable = true;
13865
- if (!opts || opts.emitEvent !== true)
13865
+ if (!opts || opts.emitEvent !== false)
13866
13866
  this.markForCheck();
13867
13867
  }
13868
13868
  }
@@ -28302,7 +28302,6 @@ class AppEntityEditorModal extends AppTabEditor {
28302
28302
  this.savingSubject = new BehaviorSubject(false);
28303
28303
  this.$title = new Subject();
28304
28304
  this.i18nSuffix = null;
28305
- this.environement = injector.get(ENVIRONMENT);
28306
28305
  options = {
28307
28306
  // Default options
28308
28307
  i18nPrefix: '',
@@ -28375,7 +28374,7 @@ class AppEntityEditorModal extends AppTabEditor {
28375
28374
  // Disable
28376
28375
  if (this.disabled)
28377
28376
  this.disable();
28378
- if (this.isNewData) {
28377
+ if (this.isNew) {
28379
28378
  // Update the title.
28380
28379
  this.updateTitle();
28381
28380
  }
@@ -28450,7 +28449,7 @@ class AppEntityEditorModal extends AppTabEditor {
28450
28449
  * Enable or disable state
28451
28450
  */
28452
28451
  updateViewState(data, opts) {
28453
- if (this.isNewData || this.enabled) {
28452
+ if (this.isNew || this.enabled) {
28454
28453
  this.enable(opts);
28455
28454
  }
28456
28455
  else {
@@ -28579,7 +28578,7 @@ class AppEntityEditorModal extends AppTabEditor {
28579
28578
  }
28580
28579
  // Or dismiss, with the role 'delete'
28581
28580
  else {
28582
- if (this.isNewData) {
28581
+ if (this.isNew) {
28583
28582
  console.error(this._logPrefix + "Trying to delete a new data. Make no sense!");
28584
28583
  }
28585
28584
  await this.modalCtrl.dismiss(this.data, 'delete');