From 6c4f5a4de9c1711e911f545868a279366b24176f Mon Sep 17 00:00:00 2001 From: Paolo Cozzi Date: Fri, 15 Sep 2023 14:51:37 +0200 Subject: [PATCH] :lipstick: write sample locations as sub-lists --- .../sample-detail/sample-detail.component.html | 11 ++++++++--- .../sample-detail/sample-detail.component.scss | 4 ++++ src/app/shared/locations-list.pipe.ts | 6 +++--- 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/src/app/samples/sample-detail/sample-detail.component.html b/src/app/samples/sample-detail/sample-detail.component.html index 8da15aa..3bc795a 100644 --- a/src/app/samples/sample-detail/sample-detail.component.html +++ b/src/app/samples/sample-detail/sample-detail.component.html @@ -55,9 +55,14 @@

id: {{ sample._id.$oid }}

Type: {{ sample.type }} - - Locations: {{ sample.locations | locationsList }} - + + Locations: + +
+ {{ location }} +
+
+
{ - result += `latitude: ${position[1]}, longitude: ${position[0]} ` + result.push(`latitude: ${position[1]}, longitude: ${position[0]}`); }); return result;