X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/c061d3fd3d4c9135fdbda0af273d9fc0dc5b5535..2ba00544d30017ad30570011b1a2bcc6a8da73a7:/src/components/LastUpdated.svelte?ds=inline diff --git a/src/components/LastUpdated.svelte b/src/components/LastUpdated.svelte index ccf1338..0d7768d 100644 --- a/src/components/LastUpdated.svelte +++ b/src/components/LastUpdated.svelte @@ -1,27 +1,45 @@
+
+
+ Loading data from API ... +
-
loading...
{#if last_api_request_url}
Data from API request @@ -41,10 +62,14 @@
{/if}
-
+
{#if last_updated_date} - Data last updated: {last_updated_date} + Data last updated: + + {timeago.format(new Date(last_updated_date))} + {/if} + (Details)