aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/app.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/app.component.ts')
-rw-r--r--client/src/app/app.component.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/client/src/app/app.component.ts b/client/src/app/app.component.ts
index 121e60ffc..220b104b7 100644
--- a/client/src/app/app.component.ts
+++ b/client/src/app/app.component.ts
@@ -1,7 +1,7 @@
1import { Component, OnInit } from '@angular/core' 1import { Component, OnInit } from '@angular/core'
2import { GuardsCheckStart, NavigationEnd, Router } from '@angular/router' 2import { GuardsCheckStart, NavigationEnd, Router } from '@angular/router'
3import { AuthService, ServerService } from '@app/core' 3import { AuthService, ServerService } from '@app/core'
4import { isInMobileView } from '@app/shared/misc/utils' 4import { isInSmallView } from '@app/shared/misc/utils'
5 5
6@Component({ 6@Component({
7 selector: 'my-app', 7 selector: 'my-app',
@@ -54,14 +54,14 @@ export class AppComponent implements OnInit {
54 this.serverService.loadVideoPrivacies() 54 this.serverService.loadVideoPrivacies()
55 55
56 // Do not display menu on small screens 56 // Do not display menu on small screens
57 if (isInMobileView()) { 57 if (isInSmallView()) {
58 this.isMenuDisplayed = false 58 this.isMenuDisplayed = false
59 } 59 }
60 60
61 this.router.events.subscribe( 61 this.router.events.subscribe(
62 e => { 62 e => {
63 // User clicked on a link in the menu, change the page 63 // User clicked on a link in the menu, change the page
64 if (e instanceof GuardsCheckStart && isInMobileView()) { 64 if (e instanceof GuardsCheckStart && isInSmallView()) {
65 this.isMenuDisplayed = false 65 this.isMenuDisplayed = false
66 } 66 }
67 } 67 }