mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
Always shaving delayedMediaShow for lightbox
This commit is contained in:
parent
78041a1d9c
commit
4bbc3a4e68
@ -109,8 +109,10 @@ export class GalleryLightboxComponent implements OnDestroy, OnInit {
|
|||||||
params[QueryParams.gallery.photo] &&
|
params[QueryParams.gallery.photo] &&
|
||||||
params[QueryParams.gallery.photo] !== ''
|
params[QueryParams.gallery.photo] !== ''
|
||||||
) {
|
) {
|
||||||
|
this.delayedMediaShow = params[QueryParams.gallery.photo]
|
||||||
|
// photos are not yet available to show
|
||||||
if (!this.gridPhotoQL) {
|
if (!this.gridPhotoQL) {
|
||||||
return (this.delayedMediaShow = params[QueryParams.gallery.photo]);
|
return;
|
||||||
}
|
}
|
||||||
this.onNavigateTo(params[QueryParams.gallery.photo]);
|
this.onNavigateTo(params[QueryParams.gallery.photo]);
|
||||||
} else if (this.status === LightboxStates.Open) {
|
} else if (this.status === LightboxStates.Open) {
|
||||||
|
Loading…
Reference in New Issue
Block a user