Compare commits
2 Commits
f08437589a
...
b22f45f825
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b22f45f825 | ||
|
|
14df3db8d1 |
@@ -15,6 +15,7 @@
|
||||
<p class="col-span-4">{tag}</p>
|
||||
<Button
|
||||
color="red"
|
||||
class="max-h-12"
|
||||
onclick={() => {
|
||||
tags = tags.filter((t) => t != tag);
|
||||
}}><TrashBinOutline class="size-10" /></Button
|
||||
@@ -22,6 +23,7 @@
|
||||
{/each}
|
||||
<Input class="col-span-4" bind:value={newTag}></Input>
|
||||
<Button
|
||||
class="max-h-12"
|
||||
onclick={() => {
|
||||
tags.push(newTag);
|
||||
newTag = '';
|
||||
|
||||
@@ -2,10 +2,12 @@
|
||||
import { page } from '$app/stores';
|
||||
import { getArtefact } from '$lib/artefact.remote';
|
||||
import Artefact from '$lib/components/Artefact.svelte';
|
||||
let artefact: Artefact | undefined = $state(undefined);
|
||||
|
||||
let uuid = $derived($page.params.artefact_uuid);
|
||||
let artefact: undefined | Artefact = $state(undefined);
|
||||
|
||||
$effect(() => {
|
||||
getArtefact($page.params.artefact_uuid ?? '').then((a) => (artefact = a));
|
||||
getArtefact(uuid ?? '').then((a) => (artefact = a));
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user