|
|
@ -5,7 +5,7 @@ |
|
|
|
|
|
|
|
import currentTime from "$lib/stores/currentTime"; |
|
|
|
|
|
|
|
import Entry from "../layout/Entry.svelte"; |
|
|
|
import CardEntry from "../layout/CardEntry.svelte"; |
|
|
|
import EntryDescription from "../layout/EntryDescription.svelte"; |
|
|
|
import EntryName from "../layout/EntryName.svelte"; |
|
|
|
import EntryProgress from "../layout/EntryProgress.svelte"; |
|
|
@ -35,7 +35,7 @@ import Status from "$lib/models/status"; |
|
|
|
|
|
|
|
$: { |
|
|
|
if (sprint.items != null) { |
|
|
|
itemsAcquired = sprint.items.filter(i => !!i.acquireDate).length; |
|
|
|
itemsAcquired = sprint.items.filter(i => !!i.acquireTime).length; |
|
|
|
itemsRequired = sprint.items.length; |
|
|
|
} else { |
|
|
|
itemsAcquired = 0; |
|
|
@ -76,7 +76,7 @@ import Status from "$lib/models/status"; |
|
|
|
</script> |
|
|
|
|
|
|
|
<a href="/{sprint.scope.id}/sprints?sprint={sprint.id}"> |
|
|
|
<Entry> |
|
|
|
<CardEntry> |
|
|
|
{#if sprint.kind === "stats"} |
|
|
|
<EntryButton> |
|
|
|
<Icon name="plus" /> |
|
|
@ -114,7 +114,7 @@ import Status from "$lib/models/status"; |
|
|
|
{/if} |
|
|
|
</EntryProgressRow> |
|
|
|
{#each sprint.items as item (item.id)} |
|
|
|
{#if !item.acquireDate} |
|
|
|
{#if !item.acquireTime} |
|
|
|
<ItemLink compact item={item} /> |
|
|
|
{/if} |
|
|
|
{/each} |
|
|
@ -123,7 +123,7 @@ import Status from "$lib/models/status"; |
|
|
|
<RequirementLink compact boat={boat} requirement={requirement} /> |
|
|
|
{/if} |
|
|
|
{/each} |
|
|
|
</Entry> |
|
|
|
</CardEntry> |
|
|
|
</a> |
|
|
|
|
|
|
|
<style lang="scss"> |
|
|
|