implemented tags for items
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
@@ -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} />
|
||||
|
||||
Reference in New Issue
Block a user