@fluxhub/fluxhub-lib 10.0.17 → 10.0.19

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.
@@ -1528,12 +1528,10 @@
1528
1528
  this.title = "ANTEPRIMA EMAIL";
1529
1529
  this.web_url = '';
1530
1530
  this.local_dir = '';
1531
- this.web_url = data.web_url;
1532
- this.local_dir = data.local_dir;
1533
1531
  var fs = new FSInput();
1534
1532
  fs.command = "exec_app";
1535
1533
  fs.p1 = "Email_Reader_S3";
1536
- fs.p2 = this.web_url + '|' + this.local_dir + '|' + data.filename;
1534
+ fs.p2 = data.local_dir + '|' + data.uiid;
1537
1535
  this._fileservice.doQuery(fs).subscribe(function (data) {
1538
1536
  _this.email_obj = JSON.parse(data.msg);
1539
1537
  _this.allegati = _this.email_obj.allegati.split('||');
@@ -1625,24 +1623,11 @@
1625
1623
  });
1626
1624
  };
1627
1625
  FHUploadPanelS3Component.prototype.preview_email = function (ax) {
1628
- var _this = this;
1629
- var p = new FSInput();
1630
- p.command = "exec_app";
1631
- p.p1 = "s3_downloader";
1632
- p.p2 = ax.uiid +
1633
- "|" +
1634
- this._appservice.user;
1635
- this.fileService.doQuery(p).subscribe(function (data) {
1636
- if (data != null)
1637
- if (data.result_msg == "OK") {
1638
- var str_mg = data.msg.split('|');
1639
- if (str_mg[0] == 'OK') {
1640
- var dialogRef = _this.dialog.open(win_show_email_s3, { data: { web_url: str_mg[1], local_dir: _this._appservice.LOCAL_PATH + '\\' + _this._appservice.user + '\\',
1641
- filename: str_mg[1].split('/')[str_mg[1].split('/').length - 1] } });
1642
- dialogRef.afterClosed().subscribe(function (result) {
1643
- });
1644
- }
1645
- }
1626
+ var dialogRef = this.dialog.open(win_show_email_s3, { data: {
1627
+ uiid: ax.uiid,
1628
+ local_dir: this._appservice.user
1629
+ } });
1630
+ dialogRef.afterClosed().subscribe(function (result) {
1646
1631
  });
1647
1632
  };
1648
1633
  FHUploadPanelS3Component.prototype.edit_tipo = function (ax) {