add item status

This commit is contained in:
marlon-erler
2024-07-12 14:30:30 +02:00
parent e059427f86
commit ffa4e8c538
12 changed files with 495 additions and 71 deletions
+20 -1
View File
@@ -34,6 +34,10 @@ export function ObjectDetailModal(
[selectedMessageObject],
() => selectedMessageObject.value.categoryName ?? ""
);
const editingStatus = React.createProxyState(
[selectedMessageObject],
() => selectedMessageObject.value.status ?? ""
);
const editingDate = React.createProxyState(
[selectedMessageObject],
() => selectedMessageObject.value.date ?? ""
@@ -50,6 +54,7 @@ export function ObjectDetailModal(
[
editingNoteContent,
editingCategory,
editingStatus,
editingDate,
editingTime,
editingPriority,
@@ -84,6 +89,7 @@ export function ObjectDetailModal(
noteContent: editingNoteContent.value,
priority: editingPriority.value,
categoryName: editingCategory.value,
status: editingStatus.value,
date: editingDate.value,
time: editingTime.value,
});
@@ -152,7 +158,7 @@ export function ObjectDetailModal(
<div>
<span>{translation.note}</span>
<textarea
rows="5"
rows="10"
class="height-auto"
bind:value={editingNoteContent}
placeholder={translation.noteContentPlaceholder}
@@ -160,6 +166,8 @@ export function ObjectDetailModal(
</div>
</label>
<hr></hr>
<label class="tile">
<span class="icon">{icons.categoryName}</span>
<div>
@@ -189,6 +197,17 @@ export function ObjectDetailModal(
</div>
</label>
<label class="tile">
<span class="icon">{icons.status}</span>
<div>
<span>{translation.status}</span>
<input
bind:value={editingStatus}
placeholder={translation.statusPlaceholder}
></input>
</div>
</label>
<hr></hr>
<label class="tile">