download files
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
<td mat-cell *matCellDef="let element">
|
||||
<button
|
||||
mat-icon-button
|
||||
(click)="onClickDownload(element.ID)"
|
||||
(click)="onClickDownload(element.ID, element.Name)"
|
||||
matTooltip="Datei herunterladen"
|
||||
matTooltipPosition="left"
|
||||
>
|
||||
|
||||
@@ -43,7 +43,9 @@ export class SongFilesComponent {
|
||||
});
|
||||
}
|
||||
|
||||
public onClickDownload(id: number): void {}
|
||||
public onClickDownload(fileId: number, filename): void {
|
||||
this.downloadService.get(this.selectedSongId, fileId, filename);
|
||||
}
|
||||
public onFileOverNew(hover: boolean) {
|
||||
this.fileOverNew = hover;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user