X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/c061d3fd3d4c9135fdbda0af273d9fc0dc5b5535..200f60bc3a38adc7ae5e9acbbbf0565b715bdb80:/src/components/LastUpdated.svelte?ds=sidebyside 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)