|
|
@ -29,6 +29,7 @@ import { getSprintListContext } from "$lib/components/contexts/SprintListContext |
|
|
|
let openedDate: Date |
|
|
|
let requirementName: string |
|
|
|
let op: string |
|
|
|
let initOnList: number[] = []; |
|
|
|
|
|
|
|
let error: string |
|
|
|
let loading: boolean |
|
|
@ -54,6 +55,8 @@ import { getSprintListContext } from "$lib/components/contexts/SprintListContext |
|
|
|
let stats = requirement?.stats.map(s => ({statId: s.id, required: 0, acquired: 0})); |
|
|
|
if (stats == null) { |
|
|
|
stats = scope.stats.map(s => ({statId: s.id, required: 0, acquired: 0})) |
|
|
|
} else { |
|
|
|
initOnList = requirement.stats.filter(s => s.required > 0).map(s => s.id); |
|
|
|
} |
|
|
|
|
|
|
|
item = { |
|
|
@ -174,6 +177,7 @@ import { getSprintListContext } from "$lib/components/contexts/SprintListContext |
|
|
|
<label for="stats">Stats</label> |
|
|
|
<StatInput |
|
|
|
zeroDeletes showRequired |
|
|
|
initOnList={initOnList} |
|
|
|
showAcquired={op === "Edit" && !!item.acquiredTime} |
|
|
|
hideUnseen={!!item.requirementId} |
|
|
|
bind:value={item.stats} |
|
|
|