@fluxhub/fluxhub-lib 11.0.74 → 11.0.75

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.
@@ -101,6 +101,7 @@
101
101
  this.show_annulla = true;
102
102
  this.show_ok = true;
103
103
  this.min_chars = 3;
104
+ this.error_msg = null;
104
105
  if (data != null) {
105
106
  if (data.title != null)
106
107
  this.title = data.title;
@@ -116,6 +117,8 @@
116
117
  this.show_ok = data.show_ok;
117
118
  if (data.min_chars != null)
118
119
  this.min_chars = data.min_chars;
120
+ if (data.error_msg != null)
121
+ this.error_msg = data.error_msg;
119
122
  }
120
123
  }
121
124
  fh_win_ask_big_text.prototype.ngAfterViewInit = function () { };
@@ -128,7 +131,10 @@
128
131
  };
129
132
  fh_win_ask_big_text.prototype.do_check = function () {
130
133
  if (this.valore.length < this.min_chars) {
131
- this.toastr.error("Il valore deve contenere almeno " + this.min_chars + " caratteri");
134
+ if (this.error_msg)
135
+ this.toastr.error(this.error_msg);
136
+ else
137
+ this.toastr.error("Il valore deve contenere almeno " + this.min_chars + " caratteri");
132
138
  return;
133
139
  }
134
140
  this.dialogRef.close(this.valore);
@@ -24936,7 +24942,7 @@
24936
24942
  this.oper = "procedi";
24937
24943
  this.btnprocedi = true;
24938
24944
  this.update_status(false, false, null, null, 9);
24939
- if (!this.ck_field("procedi")) {
24945
+ if (!this.ck_field("proceed")) {
24940
24946
  this.update_status(true, null, null, null, 10);
24941
24947
  if (this.respingi_enabled)
24942
24948
  this.update_status(true, true, null, null, 11);