|
@ -86,7 +86,7 @@ |
|
|
clearEndTime: endTime == "", |
|
|
clearEndTime: endTime == "", |
|
|
active: !completed, |
|
|
active: !completed, |
|
|
|
|
|
|
|
|
name, description, itemAmount, |
|
|
|
|
|
|
|
|
itemId, name, description, itemAmount, |
|
|
}).then(() => { |
|
|
}).then(() => { |
|
|
markStale("goal", "project", "task"); |
|
|
markStale("goal", "project", "task"); |
|
|
modalStore.close(); |
|
|
modalStore.close(); |
|
@ -108,7 +108,7 @@ |
|
|
<label for="description">Description</label> |
|
|
<label for="description">Description</label> |
|
|
<textarea disabled={deletion} name="description" bind:value={description} /> |
|
|
<textarea disabled={deletion} name="description" bind:value={description} /> |
|
|
<label for="itemId">Item</label> |
|
|
<label for="itemId">Item</label> |
|
|
<ItemSelect disabled={!creation} name="itemId" bind:value={itemId} /> |
|
|
|
|
|
|
|
|
<ItemSelect disabled={deletion} name="itemId" bind:value={itemId} /> |
|
|
<label for="itemAmount">Amount</label> |
|
|
<label for="itemAmount">Amount</label> |
|
|
<input disabled={deletion} name="itemAmount" type="number" bind:value={itemAmount} /> |
|
|
<input disabled={deletion} name="itemAmount" type="number" bind:value={itemAmount} /> |
|
|
<label for="endTime">Deadline (Optional)</label> |
|
|
<label for="endTime">Deadline (Optional)</label> |
|
|