From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Thu, 18 Dec 2025 17:59:14 +0000 (-0800) Subject: Chore: refactor preview URL variable naming and safeUrl usage X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9459d04ea1233b4f58bea4a7cccdc624109c60f;p=thirdparty%2Fpaperless-ngx.git Chore: refactor preview URL variable naming and safeUrl usage --- diff --git a/src-ui/src/app/components/common/preview-popup/preview-popup.component.html b/src-ui/src/app/components/common/preview-popup/preview-popup.component.html index 7dc0ee7080..287a659efc 100644 --- a/src-ui/src/app/components/common/preview-popup/preview-popup.component.html +++ b/src-ui/src/app/components/common/preview-popup/preview-popup.component.html @@ -14,7 +14,7 @@ @if (previewText) {
{{previewText}}
} @else { - + } } @else { @if (requiresPassword) { @@ -24,7 +24,7 @@ } @if (!requiresPassword) { { @@ -126,10 +126,6 @@ export class PreviewPopupComponent implements OnDestroy { } } - get previewUrl() { - return this.documentService.getPreviewUrl(this.document.id) - } - mouseEnterPreview() { this.mouseOnPreview = true if (!this.popover.isOpen()) { diff --git a/src-ui/src/app/components/document-detail/document-detail.component.html b/src-ui/src/app/components/document-detail/document-detail.component.html index d8cd2d756a..c3dbc48053 100644 --- a/src-ui/src/app/components/document-detail/document-detail.component.html +++ b/src-ui/src/app/components/document-detail/document-detail.component.html @@ -379,7 +379,7 @@
@if (showThumbnailOverlay) { - Document loading... + Document loading... }
@@ -414,7 +414,7 @@ } @case (ContentRenderType.Image) {
- {{title}} + {{title}}
} @case (ContentRenderType.TIFF) {