diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-10-09 19:12:40 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-10-09 19:12:40 +0200 |
commit | db7af09bd8e9de57cdda88c2e32387551235b3a4 (patch) | |
tree | 8e3cac831be63a2c66e3b6d5e3b22e33492fb726 /client/src/app/core/menu/menu.component.ts | |
parent | bcd1c9e19447a98d605385fab69b5cfa58d0ba4b (diff) | |
download | PeerTube-db7af09bd8e9de57cdda88c2e32387551235b3a4.tar.gz PeerTube-db7af09bd8e9de57cdda88c2e32387551235b3a4.tar.zst PeerTube-db7af09bd8e9de57cdda88c2e32387551235b3a4.zip |
Client: fix loading server configurations
Diffstat (limited to 'client/src/app/core/menu/menu.component.ts')
-rw-r--r-- | client/src/app/core/menu/menu.component.ts | 6 |
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' | |||
2 | import { Router } from '@angular/router' | 2 | import { Router } from '@angular/router' |
3 | 3 | ||
4 | import { AuthService, AuthStatus } from '../auth' | 4 | import { AuthService, AuthStatus } from '../auth' |
5 | import { ConfigService } from '../config' | 5 | import { 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 () { |