diff options
author | James Woglom <j@wogloms.net> | 2022-08-29 21:52:54 -0400 |
---|---|---|
committer | James Woglom <j@wogloms.net> | 2022-08-29 21:52:54 -0400 |
commit | 8abacc2a3610701e6258d9c79ee0c577ad2b2376 (patch) | |
tree | a9222733401f237d5db1e16bd9190567eae51ac7 /ui/src/app/downloads.service.ts | |
parent | load selectize (diff) | |
download | metube-8abacc2a3610701e6258d9c79ee0c577ad2b2376.tar.gz metube-8abacc2a3610701e6258d9c79ee0c577ad2b2376.tar.bz2 metube-8abacc2a3610701e6258d9c79ee0c577ad2b2376.zip |
almost functional with selectize
Diffstat (limited to 'ui/src/app/downloads.service.ts')
-rw-r--r-- | ui/src/app/downloads.service.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/src/app/downloads.service.ts b/ui/src/app/downloads.service.ts index 018f225..42ffe6d 100644 --- a/ui/src/app/downloads.service.ts +++ b/ui/src/app/downloads.service.ts @@ -33,8 +33,8 @@ export class DownloadsService { done = new Map<string, Download>(); queueChanged = new Subject(); doneChanged = new Subject(); + customDirsChanged = new Subject<string[]>(); configuration = {}; - custom_directories = {}; constructor(private http: HttpClient, private socket: MeTubeSocket) { socket.fromEvent('all').subscribe((strdata: string) => { @@ -84,7 +84,8 @@ export class DownloadsService { socket.fromEvent('custom_directories').subscribe((strdata: string) => { let data = JSON.parse(strdata); console.debug("got custom_directories:", data); - this.custom_directories = data["directories"]; + let customDirectories = data["directories"]; + this.customDirsChanged.next(customDirectories); }); } |