]> git.openstreetmap.org Git - nominatim-ui.git/blobdiff - src/pages/DeletablePage.svelte
Components for internal links (#69)
[nominatim-ui.git] / src / pages / DeletablePage.svelte
index 27e881a21dc2cd46e4f47bc79ad578acbc562f00..1d6b91eb8f6dd92f05fc5af8483214a5167cbcf9 100644 (file)
@@ -1,7 +1,9 @@
 <script>
   import { onMount } from 'svelte';
   import { fetch_from_api, update_html_title } from '../lib/api_utils.js';
-  import { detailsURL, osmLink } from '../lib/helpers.js';
+  import { osmLink } from '../lib/helpers.js';
+
+  import DetailsLink from '../components/DetailsLink.svelte';
 
   let aPolygons = [];
 
@@ -36,7 +38,7 @@
         <tbody>
           {#each aPolygons as polygon}
           <tr>
-            <td><a href="{detailsURL(polygon)}">{polygon.place_id}</a></td>
+            <td><DetailsLink feature={polygon}>{polygon.place_id}</DetailsLink></td>
             <td>{polygon.country_code}</td>
             <td>{polygon.name}</td>
             <td>{@html osmLink(polygon)}</td>