Browse Source

add item composition for front page log and item counts under tasks's show-logs logs.

main
Gisle Aune 3 years ago
parent
commit
27c2c85b89
  1. 6
      svelte-ui/src/components/TaskEntry.svelte
  2. 2
      svelte-ui/src/pages/FrontPage.svelte

6
svelte-ui/src/components/TaskEntry.svelte

@ -140,6 +140,12 @@
<div class="log-description">
<Markdown source={log.description} />
</div>
{#if log.itemAmount > 1}
<ItemLink amount={log.itemAmount} item={task.item} />
{/if}
{#if log.secondaryItem != null}
<ItemLink noPadding amount={log.secondaryItemAmount} item={log.secondaryItem} />
{/if}
</div>
{/each}
</div>

2
svelte-ui/src/pages/FrontPage.svelte

@ -7,6 +7,7 @@ import DateRangeSelect from "../components/DateRangeSelect.svelte";
import EmptyParentEntry from "../components/EmptyParentEntry.svelte";
import EveryMinute from "../components/EveryMinute.svelte";
import GoalEntry from "../components/GoalEntry.svelte";
import ItemProgress from "../components/ItemProgress.svelte";
import LogEntry from "../components/LogEntry.svelte";
import ParentEntry from "../components/ParentEntry.svelte";
import ProjectEntry from "../components/ProjectEntry.svelte";
@ -119,6 +120,7 @@ import ParentEntry from "../components/ParentEntry.svelte";
{/if}
{#if $fpLogStore.logs.length > 0}
<h1>Today's Logs</h1>
<ItemProgress logs={$fpLogStore.logs} centered />
<EmptyParentEntry icon="list">
{#each $fpLogStore.logs as log (log.id)}
<LogEntry log={log} />

Loading…
Cancel
Save