working on time list

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2025-08-18 01:23:29 +02:00
parent cedb798af8
commit 8bb44d0d7f
9 changed files with 52 additions and 15 deletions

View File

@@ -49,8 +49,8 @@
<div>
<h1>Times</h1>
{#if projects}
{#each projects as project,idx1}
<button onclick={() => loadTimes(project.id)}>{project.name}</button>
{#each Object.entries(projects) as [pid,project]}
<button onclick={() => loadTimes(+pid)}>{project.name}</button>
{/each}
{/if}
{#if times}
@@ -63,4 +63,4 @@
</div>
{/each}
{/if}
</div>
</div>