From d822e7b2239699fc6dbdd0a7627c583c7b7538d0 Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Sat, 5 Aug 2023 01:07:37 +0200 Subject: [PATCH] Also show position if text based position is not available. --- .../infopanel/info-panel.lightbox.gallery.component.html | 2 +- .../lightbox/infopanel/info-panel.lightbox.gallery.component.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/app/ui/gallery/lightbox/infopanel/info-panel.lightbox.gallery.component.html b/src/frontend/app/ui/gallery/lightbox/infopanel/info-panel.lightbox.gallery.component.html index 26e95914..64651529 100644 --- a/src/frontend/app/ui/gallery/lightbox/infopanel/info-panel.lightbox.gallery.component.html +++ b/src/frontend/app/ui/gallery/lightbox/infopanel/info-panel.lightbox.gallery.component.html @@ -128,7 +128,7 @@ -
+
diff --git a/src/frontend/app/ui/gallery/lightbox/infopanel/info-panel.lightbox.gallery.component.ts b/src/frontend/app/ui/gallery/lightbox/infopanel/info-panel.lightbox.gallery.component.ts index a7a44d07..d628a87c 100644 --- a/src/frontend/app/ui/gallery/lightbox/infopanel/info-panel.lightbox.gallery.component.ts +++ b/src/frontend/app/ui/gallery/lightbox/infopanel/info-panel.lightbox.gallery.component.ts @@ -159,7 +159,7 @@ export class InfoPanelLightboxComponent implements OnInit, OnChanges { return '1/' + Math.round(1 / f); } - hasPositionData(): boolean { + hasTextPositionData(): boolean { return ( !!(this.media as PhotoDTO).metadata.positionData && !!(