@fluxhub/fluxhub-lib 9.0.162 → 9.0.164

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.
@@ -3231,11 +3231,15 @@
3231
3231
  };
3232
3232
  this.uploader.onCompleteItem = function (item, response, status, header) {
3233
3233
  if (status === 200) {
3234
- _this.descrizione = "";
3235
- _this.toastr.info("INFO", _this.allegato_inserito, {
3236
- timeOut: 1000,
3237
- progressBar: true,
3238
- });
3234
+ _this.descrizione = '';
3235
+ var res = JSON.parse(response);
3236
+ if (res.result_msg === 'OK')
3237
+ _this.toastr.info("INFO", _this.allegato_inserito, {
3238
+ timeOut: 1000,
3239
+ progressBar: true,
3240
+ });
3241
+ else
3242
+ _this.toastr.error(res.msg);
3239
3243
  _this.ref_allegato();
3240
3244
  _this.last_result = {
3241
3245
  item: item,
@@ -3307,7 +3311,6 @@
3307
3311
  }, 200);
3308
3312
  return;
3309
3313
  }
3310
- console.log("this.cmb_tipo.sql ", this.cmb_tipo.sql);
3311
3314
  this.cmb_tipo.sql = this.tipo;
3312
3315
  this.cmb_tipo.fillCombo();
3313
3316
  };