@fluxhub/fluxhub-lib 10.0.554 → 10.0.556

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.
@@ -8821,6 +8821,7 @@ class AuthenticationService {
8821
8821
  this.app_s.user_isadmin = null;
8822
8822
  this.app_s.token = null;
8823
8823
  localStorage.removeItem(this.app_s.COMPANY_KEY + "token");
8824
+ this.goto_after = '';
8824
8825
  if (this.app_s.LOGIN_EXT != 1)
8825
8826
  this.router.navigate(["login"]);
8826
8827
  else {
@@ -16737,6 +16738,7 @@ class dati_aggiuntivi {
16737
16738
  this.all_c = 0;
16738
16739
  this.comm_c = 0;
16739
16740
  this.forza_canale = "";
16741
+ this.forza_canale_curr = "";
16740
16742
  /*
16741
16743
  public open_allegati(){
16742
16744
 
@@ -16849,6 +16851,7 @@ class dati_aggiuntivi {
16849
16851
  doApprova() {
16850
16852
  this.b_respingi = false;
16851
16853
  this.over_canale_iniz();
16854
+ this.over_canale_curr();
16852
16855
  let liv = 0;
16853
16856
  this.nlevel = null;
16854
16857
  if (this.m_obj.stato == 0) {
@@ -18008,6 +18011,7 @@ class dati_aggiuntivi {
18008
18011
  this.livs = r;
18009
18012
  this.apply_over_load();
18010
18013
  this.over_canale_iniz();
18014
+ this.over_canale_curr();
18011
18015
  if (this.m_obj.stato <= 10)
18012
18016
  for (var i = 0; i < this.livs.length; i++)
18013
18017
  if (this.livs[i].idp.toUpperCase() == this.user_idp.toUpperCase() ||
@@ -18073,6 +18077,24 @@ class dati_aggiuntivi {
18073
18077
  this.m_obj.canale = this.forza_canale;
18074
18078
  this.c_canale = this.forza_canale;
18075
18079
  }
18080
+ over_canale_curr() {
18081
+ if (this.forza_canale_curr == "")
18082
+ return;
18083
+ if (this.m_obj.stato == null)
18084
+ return;
18085
+ let min_liv = 0;
18086
+ for (let i = 0; i < this.livs.length; i++)
18087
+ if (this.livs[i].livello == this.m_obj.stato) {
18088
+ min_liv = this.livs[i].livello;
18089
+ }
18090
+ for (let i = 0; i < this.livs.length; i++)
18091
+ if (this.livs[i].livello == min_liv) {
18092
+ this.livs[i].gruppo_parallelo = this.forza_canale_curr;
18093
+ }
18094
+ if (this.m_obj.stato < 20)
18095
+ this.m_obj.canale = this.forza_canale_curr;
18096
+ this.c_canale = this.forza_canale_curr;
18097
+ }
18076
18098
  ck_canale_multiplo() {
18077
18099
  let liv = 0;
18078
18100
  let min_liv = 0;