|
@ -49,6 +49,8 @@ import type { GroupResult } from "../models/group"; |
|
|
let compositionMode = goal.compositionMode; |
|
|
let compositionMode = goal.compositionMode; |
|
|
let startTime = formatFormTime(goal.startTime); |
|
|
let startTime = formatFormTime(goal.startTime); |
|
|
let endTime = formatFormTime(goal.endTime); |
|
|
let endTime = formatFormTime(goal.endTime); |
|
|
|
|
|
let taskFilter = goal.taskFilter || ""; |
|
|
|
|
|
let itemFilter = goal.itemFilter || ""; |
|
|
|
|
|
|
|
|
let error = null; |
|
|
let error = null; |
|
|
let loading = false; |
|
|
let loading = false; |
|
@ -62,6 +64,8 @@ import type { GroupResult } from "../models/group"; |
|
|
startTime: new Date(startTime), |
|
|
startTime: new Date(startTime), |
|
|
endTime: new Date(endTime), |
|
|
endTime: new Date(endTime), |
|
|
itemId: itemId || null, |
|
|
itemId: itemId || null, |
|
|
|
|
|
taskFilter: taskFilter.toLowerCase() || null, |
|
|
|
|
|
itemFilter: itemFilter.toLowerCase() || null, |
|
|
groupId, name, description, amount, unweighted, compositionMode |
|
|
groupId, name, description, amount, unweighted, compositionMode |
|
|
}).then(() => { |
|
|
}).then(() => { |
|
|
markStale("goal"); |
|
|
markStale("goal"); |
|
@ -86,6 +90,10 @@ import type { GroupResult } from "../models/group"; |
|
|
endTime: new Date(endTime), |
|
|
endTime: new Date(endTime), |
|
|
itemId: itemId || null, |
|
|
itemId: itemId || null, |
|
|
clearItemId: itemId === "", |
|
|
clearItemId: itemId === "", |
|
|
|
|
|
taskFilter: taskFilter.toLowerCase() || null, |
|
|
|
|
|
clearTaskFilter: taskFilter === "", |
|
|
|
|
|
itemFilter: itemFilter.toLowerCase() || null, |
|
|
|
|
|
clearItemFilter: itemFilter === "", |
|
|
name, description, amount, compositionMode, unweighted, |
|
|
name, description, amount, compositionMode, unweighted, |
|
|
}).then(() => { |
|
|
}).then(() => { |
|
|
markStale("goal"); |
|
|
markStale("goal"); |
|
@ -128,6 +136,10 @@ import type { GroupResult } from "../models/group"; |
|
|
<input disabled={deletion} name="startTime" type="datetime-local" bind:value={startTime} /> |
|
|
<input disabled={deletion} name="startTime" type="datetime-local" bind:value={startTime} /> |
|
|
<label for="endTime">End Time</label> |
|
|
<label for="endTime">End Time</label> |
|
|
<input disabled={deletion} name="endTime" type="datetime-local" bind:value={endTime} /> |
|
|
<input disabled={deletion} name="endTime" type="datetime-local" bind:value={endTime} /> |
|
|
|
|
|
<label for="taskFilter">Task Filter (Optional)</label> |
|
|
|
|
|
<input disabled={deletion} name="taskFilter" type="text" bind:value={taskFilter} /> |
|
|
|
|
|
<label for="itemFilter">Item Filter (Optional)</label> |
|
|
|
|
|
<input disabled={deletion} name="itemFilter" type="text" bind:value={itemFilter} /> |
|
|
<Checkbox bind:checked={unweighted} label="Unweighted (All items count as 1)" /> |
|
|
<Checkbox bind:checked={unweighted} label="Unweighted (All items count as 1)" /> |
|
|
|
|
|
|
|
|
<hr /> |
|
|
<hr /> |
|
|