mirror of
https://github.com/bpatrik/pigallery2.git
synced 2025-01-10 04:07:35 +02:00
Update frame.component.ts
fix isDesktop logic
This commit is contained in:
parent
6d91416fd6
commit
cd5e21861c
@ -60,7 +60,7 @@ export class FrameComponent {
|
||||
public themeService: ThemeService,
|
||||
private deviceService: DeviceDetectorService
|
||||
) {
|
||||
this.enableScrollUpButton = Config.Gallery.NavBar.showScrollUpButton === ScrollUpModes.always || (Config.Gallery.NavBar.showScrollUpButton === ScrollUpModes.mobileOnly && this.deviceService.isDesktop());
|
||||
this.enableScrollUpButton = Config.Gallery.NavBar.showScrollUpButton === ScrollUpModes.always || (Config.Gallery.NavBar.showScrollUpButton === ScrollUpModes.mobileOnly && !this.deviceService.isDesktop());
|
||||
this.user = this.authService.user;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user