cat-qw-lib 0.43.55 → 0.43.56

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.
@@ -1396,6 +1396,8 @@ class BaseFormComponent {
1396
1396
  });
1397
1397
  }
1398
1398
  handleBeforeUnload(event) {
1399
+ console.log("initialRecord =>", this.initialRecord);
1400
+ console.log("Record =>", this.record);
1399
1401
  const hasChanges = JSON.stringify(this.initialRecord) !== JSON.stringify(this.record);
1400
1402
  const isSaved = this.formStateService.getIsFormSaved(); // Ensure this method exists
1401
1403
  if (hasChanges && !isSaved) {
@@ -1405,6 +1407,8 @@ class BaseFormComponent {
1405
1407
  }
1406
1408
  }
1407
1409
  checkUnsavedChanges() {
1410
+ console.log("initialRecord =>", this.initialRecord);
1411
+ console.log("Record =>", this.record);
1408
1412
  const hasChanges = JSON.stringify(this.initialRecord) !== JSON.stringify(this.record);
1409
1413
  const isSaved = this.formStateService.getIsFormSaved(); // Ensure this method exists
1410
1414
  console.log("angular hasChanges=>", hasChanges, "isSaved", isSaved);