cat-qw-lib 0.43.35 → 0.43.37

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.
@@ -718,8 +718,12 @@ class BaseControlComponent {
718
718
  return this.record[this.attributeModel.name];
719
719
  }
720
720
  checkUnsavedChanges() {
721
+ console.log("1=> initialRecord", this.initialRecord);
722
+ console.log("2=> Record", this.record);
721
723
  const sanitizedInitialRecord = this.normalizeRecord(this.initialRecord);
722
724
  const sanitizedCurrentRecord = this.normalizeRecord(this.record);
725
+ console.log("3=> currentRecord", sanitizedCurrentRecord);
726
+ console.log("4=> Initial Record", sanitizedInitialRecord);
723
727
  const hasChanges = JSON.stringify(sanitizedInitialRecord) !== JSON.stringify(sanitizedCurrentRecord);
724
728
  this.formStateService.selectIsFormSaved().subscribe((res) => {
725
729
  if (res) {
@@ -727,9 +731,11 @@ class BaseControlComponent {
727
731
  }
728
732
  else {
729
733
  if (!res && hasChanges) {
734
+ console.log("hasChange");
730
735
  this.formStateService.setShowConfirmation(true);
731
736
  }
732
737
  if (!res && !hasChanges) {
738
+ console.log("No hasChange");
733
739
  this.formStateService.setShowConfirmation(false);
734
740
  }
735
741
  }