@fluxhub/fluxhub-lib 10.0.484 → 10.0.485

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.
@@ -17016,7 +17016,9 @@ class dati_aggiuntivi {
17016
17016
  }
17017
17017
  }
17018
17018
  back(edit_button) {
17019
- if (!edit_button)
17019
+ let arrx = this.uti_s.get_diff_doc(this.old_doc, this.m_obj);
17020
+ console.log('arrx ', arrx);
17021
+ if (!edit_button || arrx.length == 0)
17020
17022
  this.m_router.navigate([this.app_info.modulo_swf]);
17021
17023
  else {
17022
17024
  let dialogRef = this.m_dialog.open(win_salva_annulla, {
@@ -17787,6 +17789,7 @@ class dati_aggiuntivi {
17787
17789
  }
17788
17790
  ok_load_document(o) {
17789
17791
  this.m_obj = (JSON.parse(JSON.stringify(o)));
17792
+ this.old_doc = (JSON.parse(JSON.stringify(o)));
17790
17793
  this.edit_b(false, false);
17791
17794
  this.save_to_app_state();
17792
17795
  let p = new QParam();
@@ -24157,7 +24160,9 @@ class dati_aggiuntivi_v2 {
24157
24160
  setTimeout(() => { this.reset_updw(); }, 800);
24158
24161
  }
24159
24162
  back(edit_button) {
24160
- if (!edit_button)
24163
+ let arrx = this.uti_s.get_diff_doc(this.old_doc, this.m_obj);
24164
+ console.log('arrx ', arrx);
24165
+ if (!edit_button || arrx.length == 0)
24161
24166
  this.m_router.navigate([this.app_info.modulo_swf]);
24162
24167
  else {
24163
24168
  let dialogRef = this.m_dialog.open(win_salva_annulla_v2, {
@@ -24494,6 +24499,7 @@ class dati_aggiuntivi_v2 {
24494
24499
  }
24495
24500
  ok_load_document(o) {
24496
24501
  this.m_obj = (JSON.parse(JSON.stringify(o)));
24502
+ this.old_doc = (JSON.parse(JSON.stringify(o)));
24497
24503
  this.edit_b(false);
24498
24504
  this.save_to_app_state();
24499
24505
  let p = new QParam();