show download totals at the top; debounce download speeds. closes #613

This commit is contained in:
Alex Shnitman
2025-06-06 19:20:33 +03:00
parent d74e8df408
commit 7e14c63008
6 changed files with 153 additions and 9 deletions
+2
View File
@@ -40,6 +40,7 @@ export class DownloadsService {
doneChanged = new Subject();
customDirsChanged = new Subject();
configurationChanged = new Subject();
updated = new Subject();
configuration = {};
customDirs = {};
@@ -66,6 +67,7 @@ export class DownloadsService {
data.checked = dl.checked;
data.deleting = dl.deleting;
this.queue.set(data.url, data);
this.updated.next(null);
});
socket.fromEvent('completed').subscribe((strdata: string) => {
let data: Download = JSON.parse(strdata);