mirror of
https://github.com/alexta69/metube.git
synced 2026-06-16 08:16:12 +00:00
feat: cancel playlist adding mid-operation (closes #840)
This commit is contained in:
@@ -433,6 +433,13 @@ export class App implements AfterViewInit, OnInit {
|
||||
});
|
||||
}
|
||||
|
||||
cancelAdding() {
|
||||
this.downloads.cancelAdd().subscribe({
|
||||
next: () => { this.addInProgress = false; },
|
||||
error: () => { this.addInProgress = false; }
|
||||
});
|
||||
}
|
||||
|
||||
downloadItemByKey(id: string) {
|
||||
this.downloads.startById([id]).subscribe();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user