From b4ff3796e952eb0dce063e881fe8d72c203475c4 Mon Sep 17 00:00:00 2001 From: Paul Rangger Date: Fri, 17 Jan 2025 15:30:13 +0100 Subject: [PATCH] Added jsdoc --- src/main/webapp/app/shared/http/file.service.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/webapp/app/shared/http/file.service.ts b/src/main/webapp/app/shared/http/file.service.ts index 9fb5e73b1bb2..bd98edadb306 100644 --- a/src/main/webapp/app/shared/http/file.service.ts +++ b/src/main/webapp/app/shared/http/file.service.ts @@ -73,6 +73,13 @@ export class FileService { return newWindow; } + /** + * Creates the URL to download a attachment file + * + * @param downloadUrl url that is stored in the attachment model + * @param downloadName the name given to the attachment + * @param encodeName whether or not to encode the downloadName + */ createAttachmentFileUrl(downloadUrl: string, downloadName: string, encodeName: boolean) { const downloadUrlComponents = downloadUrl.split('/'); // take the last element