implemented tags for items

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2025-10-16 23:04:52 +02:00
parent 554b0459fa
commit 8d40c8c9f1
5 changed files with 63 additions and 19 deletions

View File

@@ -38,8 +38,8 @@
router.navigate(`/${n.module}/${n.entity_id}/view`);
}
async function load(){
const url = api(`notes/${module}/${entity_id}`);
async function load(id){
const url = api(`notes/${module}/${id}`);
const resp = await fetch(url,{credentials:'include'});
if (resp.ok){
const data = await resp.json();
@@ -87,7 +87,7 @@
}
}
onMount(load);
$effect(() => load(entity_id));
</script>
<List {authors} {module} {notes} />