@valtimo/zgw 13.36.0 → 13.36.1
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.
package/fesm2022/valtimo-zgw.mjs
CHANGED
|
@@ -1619,8 +1619,10 @@ class DocumentenApiPreviewModalComponent {
|
|
|
1619
1619
|
this.modalClose.emit();
|
|
1620
1620
|
}
|
|
1621
1621
|
onDownload() {
|
|
1622
|
-
this.relatedFile
|
|
1623
|
-
|
|
1622
|
+
combineLatest([this.relatedFile$, this.caseDocumentId$])
|
|
1623
|
+
.pipe(take(1))
|
|
1624
|
+
.subscribe(([document, caseDocumentId]) => {
|
|
1625
|
+
this.downloadService.downloadFile(`${this._valtimoEndpointUri}v1/zaken-api/${document.pluginConfigurationId}/case-document/${caseDocumentId}/files/${document.fileId}/download`, document.bestandsnaam ?? '', true);
|
|
1624
1626
|
});
|
|
1625
1627
|
}
|
|
1626
1628
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: DocumentenApiPreviewModalComponent, deps: [{ token: i2.ConfigService }, { token: i4$2.DownloadService }, { token: i3$1.DomSanitizer }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Component }); }
|