1
0
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:
Patrik J. Braun 2023-08-09 09:43:47 +02:00 committed by GitHub
parent 6d91416fd6
commit cd5e21861c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}