fixed autocomplete
This commit is contained in:
parent
0ddc95dcc5
commit
f2153848f7
@ -46,7 +46,7 @@ export class FileDownloadService extends EntitiesService<DownloadStatus, IDownlo
|
|||||||
async performDownload(status: DownloadStatus) {
|
async performDownload(status: DownloadStatus) {
|
||||||
const anchor = document.createElement('a');
|
const anchor = document.createElement('a');
|
||||||
anchor.href = `${this._configService.values.API_URL}/async/download?storageId=${encodeURIComponent(status.storageId)}`;
|
anchor.href = `${this._configService.values.API_URL}/async/download?storageId=${encodeURIComponent(status.storageId)}`;
|
||||||
if (this._configService.values.USE_SESSION_FOR_DOWNLOAD) {
|
if (!this._configService.values.USE_SESSION_FOR_DOWNLOAD) {
|
||||||
const token = await this._keycloakService.getToken();
|
const token = await this._keycloakService.getToken();
|
||||||
anchor.href = anchor.href + `&access_token=${encodeURIComponent(token)}`;
|
anchor.href = anchor.href + `&access_token=${encodeURIComponent(token)}`;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user