]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/core/menu/menu.component.ts
Client: try to be responsive
[github/Chocobozzz/PeerTube.git] / client / src / app / core / menu / menu.component.ts
index 5ca60e5e0abcecf06be607f2d4475fe81d60d18e..5ab8bf46440194be7c0e9a38726cf31dadca7cd0 100644 (file)
@@ -2,16 +2,19 @@ import { Component, OnInit } from '@angular/core';
 import { Router } from '@angular/router';
 
 import { AuthService, AuthStatus } from '../auth';
+import { ConfigService } from '../config';
 
 @Component({
   selector: 'my-menu',
-  templateUrl: './menu.component.html'
+  templateUrl: './menu.component.html',
+  styleUrls: [ './menu.component.scss' ]
 })
 export class MenuComponent implements OnInit {
   isLoggedIn: boolean;
 
   constructor (
     private authService: AuthService,
+    private configService: ConfigService,
     private router: Router
   ) {}
 
@@ -33,6 +36,10 @@ export class MenuComponent implements OnInit {
     );
   }
 
+  isRegistrationEnabled() {
+    return this.configService.getConfig().signup.enabled;
+  }
+
   isUserAdmin() {
     return this.authService.isAdmin();
   }