minor improvements

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2025-08-28 12:33:48 +02:00
parent 2d1f60bcae
commit 3a43c5a7ba
2 changed files with 9 additions and 4 deletions

View File

@@ -143,7 +143,8 @@ public class Time implements Mappable{
}
public Time stop(LocalDateTime endTime) {
end = endTime.withNano(0);
end = endTime.withSecond(0).withNano(0);
start = start.withSecond(0).withNano(0);
state = State.Open;
return this;
}

View File

@@ -163,9 +163,13 @@
{time.subject}
</td>
<td class="tasks" onclick={e => {detail = time.id}}>
{#each Object.entries(time.tasks) as [tid,task]}
<a href="#" onclick={e => openTask(tid)}>{task}</a>
{/each}
<ul>
{#each Object.entries(time.tasks) as [tid,task]}
<li>
<a href="#" onclick={e => openTask(tid)}>{task}</a>
</li>
{/each}
</ul>
</td>
<td class="state" onclick={e => {detail = time.id}}>
{t("state_"+time.state.name.toLowerCase())}