mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-23 14:59:36 +02:00
feat: Update NoteModal component to allow editing and submitting notes
This commit is contained in:
parent
8dd44e23a6
commit
12595483fc
1 changed files with 1 additions and 1 deletions
|
@ -113,7 +113,7 @@
|
||||||
<p class="font-semibold text-md mb-2">Editing note {initialName}</p>
|
<p class="font-semibold text-md mb-2">Editing note {initialName}</p>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{#if user?.pk == note?.user_id}
|
{#if (note && user?.pk == note?.user_id) || !note}
|
||||||
<form on:submit|preventDefault>
|
<form on:submit|preventDefault>
|
||||||
<div class="form-control mb-2">
|
<div class="form-control mb-2">
|
||||||
<label for="name">Name</label>
|
<label for="name">Name</label>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue