Simplified streaming and file deletion functions

This commit is contained in:
Isaac Abadi
2021-05-16 02:53:36 -06:00
parent 1d2ab0dc41
commit 297a4a3f34
3 changed files with 32 additions and 114 deletions

View File

@@ -56,7 +56,7 @@ export class FileCardComponent implements OnInit {
deleteFile(blacklistMode = false) {
if (!this.playlist) {
this.postsService.deleteFile(this.uid, this.isAudio ? 'audio' : 'video', blacklistMode).subscribe(result => {
this.postsService.deleteFile(this.uid, blacklistMode).subscribe(result => {
if (result) {
this.openSnackBar('Delete success!', 'OK.');
this.removeFile.emit(this.name);