aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+my-account/my-account.component.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-09-05 14:59:15 +0200
committerChocobozzz <me@florianbigard.com>2018-09-05 15:00:25 +0200
commitb0ee41df7d6de2f77d30e7bb47c245c0b33019d4 (patch)
treeeafdc2bc0a8facd7a3b779d3998eb696f0177473 /client/src/app/+my-account/my-account.component.ts
parent4c8e4e04d1b3f0f207e9155df393ceeb23dc2172 (diff)
downloadPeerTube-b0ee41df7d6de2f77d30e7bb47c245c0b33019d4.tar.gz
PeerTube-b0ee41df7d6de2f77d30e7bb47c245c0b33019d4.tar.zst
PeerTube-b0ee41df7d6de2f77d30e7bb47c245c0b33019d4.zip
Clean up change password validation
Diffstat (limited to 'client/src/app/+my-account/my-account.component.ts')
-rw-r--r--client/src/app/+my-account/my-account.component.ts5
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) {