From 4f3aa7d2724f8104068ef3b9d0b4c964e49f4f77 Mon Sep 17 00:00:00 2001 From: Lyubov Voloshko Date: Thu, 12 Mar 2026 13:04:07 +0000 Subject: [PATCH] update point and url table display component templates --- .../point/point.component.html | 24 ++++++++++--------- .../url/url.component.html | 18 +++++++------- 2 files changed, 23 insertions(+), 19 deletions(-) diff --git a/frontend/src/app/components/ui-components/table-display-fields/point/point.component.html b/frontend/src/app/components/ui-components/table-display-fields/point/point.component.html index 2e30aeeca..394c892b9 100644 --- a/frontend/src/app/components/ui-components/table-display-fields/point/point.component.html +++ b/frontend/src/app/components/ui-components/table-display-fields/point/point.component.html @@ -1,11 +1,13 @@ -
- {{ formattedPoint }} - -
+@if (formattedPoint) { +
+ {{ formattedPoint }} + +
+} diff --git a/frontend/src/app/components/ui-components/table-display-fields/url/url.component.html b/frontend/src/app/components/ui-components/table-display-fields/url/url.component.html index e10a7f1bb..8f2d0cc36 100644 --- a/frontend/src/app/components/ui-components/table-display-fields/url/url.component.html +++ b/frontend/src/app/components/ui-components/table-display-fields/url/url.component.html @@ -1,13 +1,15 @@
- - link - {{value() || '—'}} - - {{value() || '—'}} + @if (isValidUrl) { + + link + {{value() || '—'}} + + } @else { + {{value() || '—'}} + }