@fluxhub/fluxhub-lib 1.0.348 → 1.0.349

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.
@@ -14795,17 +14795,25 @@ class dati_aggiuntivi {
14795
14795
  this.b_valid = true;
14796
14796
  this.s_uto = "";
14797
14797
  this.b_apprf = false;
14798
+ this.init_user_i();
14799
+ console.log('user_idp: ' + this.user_idp);
14800
+ }
14801
+ /**
14802
+ * @private
14803
+ * @return {?}
14804
+ */
14805
+ init_user_i() {
14806
+ console.log('init_user_i ', this.app_s);
14798
14807
  this.user_idp = this.app_s.user;
14799
14808
  this.user_nome = this.app_s.user_name;
14800
14809
  this.user_cognome = this.app_s.user_surname;
14801
14810
  this.user_email = this.app_s.user_email;
14802
- console.log('user_idp: ' + this.user_idp);
14803
14811
  }
14804
14812
  /**
14805
14813
  * @return {?}
14806
14814
  */
14807
14815
  save_to_app_state() {
14808
- this.app_s.getState().wkf_doc_info = new Object();
14816
+ this.app_s.getState().wkf_doc_info = {};
14809
14817
  this.app_s.getState().wkf_doc_info.curr_user = this.user_idp;
14810
14818
  this.app_s.getState().wkf_doc_info.codice = this.m_obj.codice;
14811
14819
  this.app_s.getState().wkf_doc_info.data_richiesta = this.m_obj.data_richiesta;
@@ -16369,9 +16377,17 @@ class dati_aggiuntivi {
16369
16377
  onResize(event) {
16370
16378
  }
16371
16379
  /**
16380
+ * @private
16372
16381
  * @return {?}
16373
16382
  */
16374
- ngOnInit() {
16383
+ init_engine() {
16384
+ if (this.user_idp == null) {
16385
+ setTimeout((/**
16386
+ * @return {?}
16387
+ */
16388
+ () => { this.init_user_i(); }), 500);
16389
+ return;
16390
+ }
16375
16391
  this.m_route.params.subscribe((/**
16376
16392
  * @param {?} params
16377
16393
  * @return {?}
@@ -16433,6 +16449,12 @@ class dati_aggiuntivi {
16433
16449
  }));
16434
16450
  }));
16435
16451
  }
16452
+ /**
16453
+ * @return {?}
16454
+ */
16455
+ ngOnInit() {
16456
+ this.init_engine();
16457
+ }
16436
16458
  /**
16437
16459
  * @param {?} o
16438
16460
  * @return {?}