aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/core/menu
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-10-09 19:12:40 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-10-09 19:12:40 +0200
commitdb7af09bd8e9de57cdda88c2e32387551235b3a4 (patch)
tree8e3cac831be63a2c66e3b6d5e3b22e33492fb726 /client/src/app/core/menu
parentbcd1c9e19447a98d605385fab69b5cfa58d0ba4b (diff)
downloadPeerTube-db7af09bd8e9de57cdda88c2e32387551235b3a4.tar.gz
PeerTube-db7af09bd8e9de57cdda88c2e32387551235b3a4.tar.zst
PeerTube-db7af09bd8e9de57cdda88c2e32387551235b3a4.zip
Client: fix loading server configurations
Diffstat (limited to 'client/src/app/core/menu')
-rw-r--r--client/src/app/core/menu/menu.component.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/client/src/app/core/menu/menu.component.ts b/client/src/app/core/menu/menu.component.ts
index 669fc6572..8f15d8838 100644
--- a/client/src/app/core/menu/menu.component.ts
+++ b/client/src/app/core/menu/menu.component.ts
@@ -2,7 +2,7 @@ import { Component, OnInit } from '@angular/core'
2import { Router } from '@angular/router' 2import { Router } from '@angular/router'
3 3
4import { AuthService, AuthStatus } from '../auth' 4import { AuthService, AuthStatus } from '../auth'
5import { ConfigService } from '../config' 5import { ServerService } from '../server'
6 6
7@Component({ 7@Component({
8 selector: 'my-menu', 8 selector: 'my-menu',
@@ -14,7 +14,7 @@ export class MenuComponent implements OnInit {
14 14
15 constructor ( 15 constructor (
16 private authService: AuthService, 16 private authService: AuthService,
17 private configService: ConfigService, 17 private serverService: ServerService,
18 private router: Router 18 private router: Router
19 ) {} 19 ) {}
20 20
@@ -37,7 +37,7 @@ export class MenuComponent implements OnInit {
37 } 37 }
38 38
39 isRegistrationAllowed () { 39 isRegistrationAllowed () {
40 return this.configService.getConfig().signup.allowed 40 return this.serverService.getConfig().signup.allowed
41 } 41 }
42 42
43 isUserAdmin () { 43 isUserAdmin () {