@fluxhub/fluxhub-lib 10.0.638 → 10.0.640

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.
@@ -1123,26 +1123,30 @@ class FHComboboxComponent {
1123
1123
  this.setByValue(desc_val);
1124
1124
  }
1125
1125
  update_dis() {
1126
- this.dis_value = "";
1127
- try {
1128
- if (this.descri_val != null)
1129
- if (this.descri_val != "") {
1130
- this.dis_value = this._tsr.instant(this.descri_val);
1131
- return;
1132
- }
1133
- if (this.valDef == null)
1134
- this.dis_value = "";
1135
- else {
1136
- if (this.valDef.split("-1").join("") != '')
1137
- this.dis_value = this._tsr.instant(this.valDef.split("-1").join(""));
1138
- else
1139
- this.dis_value = "";
1126
+ setTimeout(() => {
1127
+ this.dis_value = "";
1128
+ try {
1129
+ this.descri_val = this.getDescri();
1130
+ /* if (this.descri_val != null)
1131
+ if (this.descri_val != "") {
1132
+ this.dis_value = this._tsr.instant(this.descri_val);
1133
+
1134
+ return;
1135
+ }
1136
+ if (this.valDef == null) this.dis_value = "";
1137
+ else {
1138
+ if(this.valDef.split("-1").join("")!='')
1139
+ this.dis_value = this._tsr.instant(this.valDef.split("-1").join(""));
1140
+ else
1141
+ this.dis_value = "";
1142
+
1143
+ }*/
1140
1144
  }
1141
- }
1142
- catch (e) {
1143
- this.dis_value = this.descri_val;
1144
- //console.log("errore split -> this.valDef ", this.valDef);
1145
- }
1145
+ catch (e) {
1146
+ this.dis_value = this.selval;
1147
+ //console.log("errore split -> this.valDef ", this.valDef);
1148
+ }
1149
+ }, 100);
1146
1150
  }
1147
1151
  resetValue() {
1148
1152
  this.selval = "-1";
@@ -17036,6 +17040,7 @@ class dati_aggiuntivi {
17036
17040
  }
17037
17041
  else {
17038
17042
  liv = this.m_obj.stato;
17043
+ console.log(this.livs, liv);
17039
17044
  if (this.m_obj.canale != null)
17040
17045
  for (let i = 0; i < this.livs.length; i++)
17041
17046
  if (this.livs[i].livello == liv)