@xiriframework/xiri-ng 0.4.4 → 0.4.5

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.
@@ -3573,7 +3573,8 @@ class XiriDialogComponent {
3573
3573
  this.formFields.set(formData);
3574
3574
  if (this.type() == 'waiting') {
3575
3575
  this.dialogRef.disableClose = true;
3576
- this.refreshTime = res.time || 2000;
3576
+ // xiri-go sends the poll interval as checkTime; res.time stays as a fallback.
3577
+ this.refreshTime = res.checkTime ?? res.time ?? 2000;
3577
3578
  // formData.done = false;
3578
3579
  // this.formFields.set( formData );
3579
3580
  this.refresh();
@@ -3627,7 +3628,9 @@ class XiriDialogComponent {
3627
3628
  download(data, tab) {
3628
3629
  if (data === null) {
3629
3630
  // TODO: fix, this is actually an external link
3630
- const file = window.open(this.dataService.getConfigApi() + this.url, 'Report');
3631
+ // '_blank' and not a fixed window name: a name would make every report replace
3632
+ // the previously opened one instead of getting its own tab.
3633
+ const file = window.open(this.dataService.getConfigApi() + this.url, '_blank');
3631
3634
  if (file === null || typeof (file) == 'undefined') {
3632
3635
  this.buttons.set([{
3633
3636
  text: 'Download',