@fluxhub/fluxhub-lib 9.0.163 → 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,12 +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
- console.log('response ', response);
3104
- _this.toastr.info("INFO", _this.allegato_inserito, {
3105
- timeOut: 1000,
3106
- progressBar: true,
3107
- });
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);
3108
3111
  _this.ref_allegato();
3109
3112
  _this.last_result = {
3110
3113
  item: item,