Skip to content

Commit

Permalink
Added jsdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
PaRangger committed Jan 17, 2025
1 parent 623d861 commit b4ff379
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/webapp/app/shared/http/file.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b4ff379

Please sign in to comment.