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