diff options
author | Chocobozzz <me@florianbigard.com> | 2018-01-31 11:58:11 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-01-31 11:58:11 +0100 |
commit | dd7789417181d202061ce5f693f1f72ab8d243c3 (patch) | |
tree | 48dd8f78a51ab3c62d818f17b3fa6bd298c61d05 /client/src/app/app.component.ts | |
parent | 1f788f2044928325e48c5d88ecbc72501873558e (diff) | |
download | PeerTube-dd7789417181d202061ce5f693f1f72ab8d243c3.tar.gz PeerTube-dd7789417181d202061ce5f693f1f72ab8d243c3.tar.zst PeerTube-dd7789417181d202061ce5f693f1f72ab8d243c3.zip |
Fix responsive with modale and menu displayed
Diffstat (limited to 'client/src/app/app.component.ts')
-rw-r--r-- | client/src/app/app.component.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/app/app.component.ts b/client/src/app/app.component.ts index d2678096f..55c7bbf99 100644 --- a/client/src/app/app.component.ts +++ b/client/src/app/app.component.ts | |||
@@ -1,5 +1,5 @@ | |||
1 | import { Component, OnInit } from '@angular/core' | 1 | import { Component, OnInit } from '@angular/core' |
2 | import { 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 { isInMobileView } from '@app/shared/misc/utils' |
5 | 5 | ||
@@ -57,7 +57,7 @@ export class AppComponent implements OnInit { | |||
57 | this.router.events.subscribe( | 57 | this.router.events.subscribe( |
58 | e => { | 58 | e => { |
59 | // User clicked on a link in the menu, change the page | 59 | // User clicked on a link in the menu, change the page |
60 | if (e instanceof NavigationEnd && isInMobileView()) { | 60 | if (e instanceof GuardsCheckStart && isInMobileView()) { |
61 | this.isMenuDisplayed = false | 61 | this.isMenuDisplayed = false |
62 | } | 62 | } |
63 | } | 63 | } |