@fluxhub/fluxhub-lib 10.0.215 → 10.0.217

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.
@@ -4109,13 +4109,20 @@
4109
4109
  this.m_programma_da_eseguire = "";
4110
4110
  }
4111
4111
  FHUploadPanelComponent.prototype.output_ris = function (o) {
4112
- console.log(o);
4112
+ if (o == null)
4113
+ return;
4114
+ if (o.response == null)
4115
+ return;
4113
4116
  var obj_r = JSON.parse(o.response);
4114
4117
  console.log(obj_r);
4115
- if (obj_r != null) {
4116
- if (obj_r.result_msg == 'KO')
4117
- this.toastr.error(obj_r.msg);
4118
- }
4118
+ if (obj_r != null)
4119
+ if (obj_r.msg != null)
4120
+ if (obj_r.msg != '') {
4121
+ if (obj_r.result_msg == 'KO')
4122
+ this.toastr.error(obj_r.msg);
4123
+ if (obj_r.result_msg == 'OK')
4124
+ this.toastr.info(obj_r.msg);
4125
+ }
4119
4126
  };
4120
4127
  FHUploadPanelComponent.prototype.call_up = function (o) {
4121
4128
  this.call_upload.emit({
@@ -4220,9 +4227,7 @@
4220
4227
  p.sql = "DELETE_ALLEGATO";
4221
4228
  p.types = ["int", "string"];
4222
4229
  p.values = [ax.id, _this.auth_s.username];
4223
- var ok_op = false;
4224
4230
  _this._dataService.doQuery(p).subscribe(function (data) {
4225
- var ok_op = false;
4226
4231
  if (data != null)
4227
4232
  if (data.result_msg == "OK") {
4228
4233
  // this.arr_g = data.result_data;
@@ -4231,11 +4236,8 @@
4231
4236
  timeOut: 1000,
4232
4237
  progressBar: true,
4233
4238
  });
4234
- ok_op = true;
4235
4239
  }
4236
- if (!ok_op) {
4237
- }
4238
- }, function (err) { });
4240
+ });
4239
4241
  }
4240
4242
  });
4241
4243
  };
@@ -4482,10 +4484,11 @@
4482
4484
  };
4483
4485
  this.uploader.onCompleteItem = function (item, response, status, header) {
4484
4486
  if (status === 200) {
4485
- _this.toastr.info("INFO", _this.allegato_inserito, {
4486
- timeOut: 1000,
4487
- progressBar: true,
4488
- });
4487
+ /*
4488
+ this.toastr.info("INFO", this.allegato_inserito, {
4489
+ timeOut: 1000,
4490
+ progressBar: true,
4491
+ });*/
4489
4492
  _this.ref_allegato();
4490
4493
  _this.last_result = {
4491
4494
  item: item,