From b1d40cff89f7cff565a98cdbcea9a624196a169a Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 4 Jun 2018 16:21:17 +0200 Subject: Add i18n attributes --- client/src/app/menu/menu.component.html | 20 ++++++++++---------- client/src/app/menu/menu.component.ts | 6 +++--- 2 files changed, 13 insertions(+), 13 deletions(-) (limited to 'client/src/app/menu') diff --git a/client/src/app/menu/menu.component.html b/client/src/app/menu/menu.component.html index 1a95477b7..167729405 100644 --- a/client/src/app/menu/menu.component.html +++ b/client/src/app/menu/menu.component.html @@ -18,11 +18,11 @@ My public profile - + My settings - + Log out @@ -31,26 +31,26 @@
- - + +
-
Videos
+
Videos
- Trending + Trending - Recently added + Recently added - Local + Local
@@ -59,12 +59,12 @@ - Administration + Administration - About + About diff --git a/client/src/app/menu/menu.component.ts b/client/src/app/menu/menu.component.ts index 69216e215..c0aea89b3 100644 --- a/client/src/app/menu/menu.component.ts +++ b/client/src/app/menu/menu.component.ts @@ -1,7 +1,7 @@ import { Component, OnInit } from '@angular/core' import { Router } from '@angular/router' import { UserRight } from '../../../../shared/models/users/user-right.enum' -import { AuthService, AuthStatus, ServerService } from '../core' +import { AuthService, AuthStatus, RedirectService, ServerService } from '../core' import { User } from '../shared/users/user.model' @Component({ @@ -24,7 +24,7 @@ export class MenuComponent implements OnInit { constructor ( private authService: AuthService, private serverService: ServerService, - private router: Router + private redirectService: RedirectService ) {} ngOnInit () { @@ -87,7 +87,7 @@ export class MenuComponent implements OnInit { this.authService.logout() // Redirect to home page - this.router.navigate(['/videos/list']) + this.redirectService.redirectToHomepage() } private computeIsUserHasAdminAccess () { -- cgit v1.2.3