@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.
@@ -3099,11 +3099,15 @@ var FHUploadComponent = /** @class */ (function () {
3099
3099
  };
3100
3100
  this.uploader.onCompleteItem = function (item, response, status, header) {
3101
3101
  if (status === 200) {
3102
- _this.descrizione = "";
3103
- _this.toastr.info("INFO", _this.allegato_inserito, {
3104
- timeOut: 1000,
3105
- progressBar: true,
3106
- });
3102
+ _this.descrizione = '';
3103
+ var res = JSON.parse(response);
3104
+ if (res.result_msg === 'OK')
3105
+ _this.toastr.info("INFO", _this.allegato_inserito, {
3106
+ timeOut: 1000,
3107
+ progressBar: true,
3108
+ });
3109
+ else
3110
+ _this.toastr.error(res.msg);
3107
3111
  _this.ref_allegato();
3108
3112
  _this.last_result = {
3109
3113
  item: item,
@@ -3175,7 +3179,6 @@ var FHUploadComponent = /** @class */ (function () {
3175
3179
  }, 200);
3176
3180
  return;
3177
3181
  }
3178
- console.log("this.cmb_tipo.sql ", this.cmb_tipo.sql);
3179
3182
  this.cmb_tipo.sql = this.tipo;
3180
3183
  this.cmb_tipo.fillCombo();
3181
3184
  };