1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2025-01-14 14:43:17 +08:00

更新
Some checks failed
pigallery2 / pigallery2-Gitea-Actions (push) Failing after 6m44s

This commit is contained in:
xuthus 2024-06-12 14:31:42 +08:00
parent 1b7fbc09a3
commit 4a712d55d8
2 changed files with 9 additions and 4 deletions

View File

@ -15,6 +15,8 @@ import {Utils} from '../../../../../../common/Utils';
import {FileSizePipe} from '../../../../pipes/FileSizePipe';
import {DatePipe} from '@angular/common';
import {LightBoxTitleTexts} from '../../../../../../common/config/public/ClientConfig';
import { Router } from '@angular/router';
@Component({
@ -66,7 +68,9 @@ export class ControlsLightboxComponent implements OnDestroy, OnInit, OnChanges {
private authService: AuthenticationService,
private cacheService: GalleryCacheService,
private fileSizePipe: FileSizePipe,
private datePipe: DatePipe
private datePipe: DatePipe,
private router: Router
) {
this.searchEnabled = this.authService.canSearch();
}
@ -381,7 +385,8 @@ export class ControlsLightboxComponent implements OnDestroy, OnInit, OnChanges {
public closeLightbox(): void {
this.hideControls();
this.closed.emit();
// this.closed.emit();
this.router.navigate([], { replaceUrl: true });
}
getPersonSearchQuery(name: string): string {

View File

@ -288,7 +288,7 @@ export class GalleryLightboxComponent implements OnDestroy, OnInit {
public hide(): void {
this.router
.navigate([], {queryParams: this.queryService.getParams()})
.navigate([], {queryParams: this.queryService.getParams(),replaceUrl: true})
.then(() => {
this.piTitleService.setLastNonMedia();
})
@ -441,7 +441,7 @@ export class GalleryLightboxComponent implements OnDestroy, OnInit {
.navigate([], {
queryParams: this.queryService.getParams(
{media: this.gridPhotoQL.get(photoIndex).gridMedia.media, playing: this.slideShowRunning}
),
), replaceUrl: true
})
.then(() => {
this.piTitleService.setMediaTitle(this.gridPhotoQL.get(photoIndex).gridMedia);