Fixed several bugs with categories

Code cleanup
This commit is contained in:
Isaac Abadi
2022-06-16 23:42:47 -04:00
parent eee8494c70
commit 53a181e04d
5 changed files with 8 additions and 41 deletions

View File

@@ -122,26 +122,6 @@ export class DownloadsComponent implements OnInit, OnDestroy {
});
}
clearFinishedDownloads(): void {
const dialogRef = this.dialog.open(ConfirmDialogComponent, {
data: {
dialogTitle: $localize`Clear finished downloads`,
dialogText: $localize`Would you like to clear your finished downloads?`,
submitText: $localize`Clear`,
warnSubmitColor: true
}
});
dialogRef.afterClosed().subscribe(confirmed => {
if (confirmed) {
this.postsService.clearDownloads(true, false, false).subscribe(res => {
if (!res['success']) {
this.postsService.openSnackBar('Failed to clear finished downloads!');
}
});
}
});
}
clearDownloadsByType(): void {
const clearEmitter = new EventEmitter<boolean>();
const dialogRef = this.dialog.open(ConfirmDialogComponent, {