diff options
Diffstat (limited to 'client/src/app/+my-account/my-account.component.ts')
-rw-r--r-- | client/src/app/+my-account/my-account.component.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/client/src/app/+my-account/my-account.component.ts b/client/src/app/+my-account/my-account.component.ts index 548f6a1c0..7100638c8 100644 --- a/client/src/app/+my-account/my-account.component.ts +++ b/client/src/app/+my-account/my-account.component.ts | |||
@@ -20,7 +20,6 @@ export class MyAccountComponent implements OnInit { | |||
20 | ) {} | 20 | ) {} |
21 | 21 | ||
22 | ngOnInit () { | 22 | ngOnInit () { |
23 | console.log(this.router.url) | ||
24 | this.updateLibraryLabel(this.router.url) | 23 | this.updateLibraryLabel(this.router.url) |
25 | 24 | ||
26 | this.router.events | 25 | this.router.events |
@@ -29,7 +28,9 @@ export class MyAccountComponent implements OnInit { | |||
29 | } | 28 | } |
30 | 29 | ||
31 | isVideoImportEnabled () { | 30 | isVideoImportEnabled () { |
32 | return this.serverService.getConfig().import.videos.http.enabled | 31 | const importConfig = this.serverService.getConfig().import.videos |
32 | |||
33 | return importConfig.http.enabled || importConfig.torrent.enabled | ||
33 | } | 34 | } |
34 | 35 | ||
35 | private updateLibraryLabel (url: string) { | 36 | private updateLibraryLabel (url: string) { |