mirror of
https://github.com/bpatrik/pigallery2.git
synced 2025-01-26 05:27: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,
|
public themeService: ThemeService,
|
||||||
private deviceService: DeviceDetectorService
|
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;
|
this.user = this.authService.user;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user