X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/c061d3fd3d4c9135fdbda0af273d9fc0dc5b5535..16f28ac4d03efe2e5e53766f26a6d6b0e4974c5f:/src/components/LastUpdated.svelte 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)