diff options
Diffstat (limited to 'client/src/app/app.component.ts')
-rw-r--r-- | client/src/app/app.component.ts | 6 |
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 @@ | |||
1 | import { Component, OnInit } from '@angular/core' | 1 | import { Component, OnInit } from '@angular/core' |
2 | import { GuardsCheckStart, NavigationEnd, Router } from '@angular/router' | 2 | import { GuardsCheckStart, NavigationEnd, Router } from '@angular/router' |
3 | import { AuthService, ServerService } from '@app/core' | 3 | import { AuthService, ServerService } from '@app/core' |
4 | import { isInMobileView } from '@app/shared/misc/utils' | 4 | import { 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 | } |