add item composition for front page log and item counts under tasks's show-logs logs.
continuous-integration/drone/push Build is passing
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -140,6 +140,12 @@
|
|||||||
<div class="log-description">
|
<div class="log-description">
|
||||||
<Markdown source={log.description} />
|
<Markdown source={log.description} />
|
||||||
</div>
|
</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>
|
</div>
|
||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import DateRangeSelect from "../components/DateRangeSelect.svelte";
|
|||||||
import EmptyParentEntry from "../components/EmptyParentEntry.svelte";
|
import EmptyParentEntry from "../components/EmptyParentEntry.svelte";
|
||||||
import EveryMinute from "../components/EveryMinute.svelte";
|
import EveryMinute from "../components/EveryMinute.svelte";
|
||||||
import GoalEntry from "../components/GoalEntry.svelte";
|
import GoalEntry from "../components/GoalEntry.svelte";
|
||||||
|
import ItemProgress from "../components/ItemProgress.svelte";
|
||||||
import LogEntry from "../components/LogEntry.svelte";
|
import LogEntry from "../components/LogEntry.svelte";
|
||||||
import ParentEntry from "../components/ParentEntry.svelte";
|
import ParentEntry from "../components/ParentEntry.svelte";
|
||||||
import ProjectEntry from "../components/ProjectEntry.svelte";
|
import ProjectEntry from "../components/ProjectEntry.svelte";
|
||||||
@@ -119,6 +120,7 @@ import ParentEntry from "../components/ParentEntry.svelte";
|
|||||||
{/if}
|
{/if}
|
||||||
{#if $fpLogStore.logs.length > 0}
|
{#if $fpLogStore.logs.length > 0}
|
||||||
<h1>Today's Logs</h1>
|
<h1>Today's Logs</h1>
|
||||||
|
<ItemProgress logs={$fpLogStore.logs} centered />
|
||||||
<EmptyParentEntry icon="list">
|
<EmptyParentEntry icon="list">
|
||||||
{#each $fpLogStore.logs as log (log.id)}
|
{#each $fpLogStore.logs as log (log.id)}
|
||||||
<LogEntry log={log} />
|
<LogEntry log={log} />
|
||||||
|
|||||||
Reference in New Issue
Block a user