]> git.openstreetmap.org Git - nominatim-ui.git/blobdiff - src/components/PageLink.svelte
put search,reverse,by-id links into top navbar (#75)
[nominatim-ui.git] / src / components / PageLink.svelte
index 9205c2f726470c8e97a9adf3cccb218a7baa8fed..bccddf2bb9056c988888274efcb3628dc0e6a837 100644 (file)
@@ -2,10 +2,11 @@
 import { refresh_page } from '../lib/stores.js';
 
 export let page;
+export let extra_classes = '';
 
 function handleClick() {
   refresh_page(page);
 }
 </script>
 
-<a on:click|preventDefault|stopPropagation={handleClick} href="{page}.html"><slot></slot></a>
+<a on:click|preventDefault|stopPropagation={handleClick} href="{page}.html" class={extra_classes}><slot></slot></a>