|
|
@ -17,10 +17,6 @@ import EveryMinute from "./EveryMinute.svelte"; |
|
|
|
let msElapsed: number; |
|
|
|
let now = Date.now(); |
|
|
|
|
|
|
|
function onMinute(e: {detail: Date}) { |
|
|
|
now = e.detail.getTime(); |
|
|
|
} |
|
|
|
|
|
|
|
$: mdGoalEdit = {name:"goal.edit", goal}; |
|
|
|
$: mdGoalDelete = {name:"goal.delete", goal}; |
|
|
|
|
|
|
@ -40,7 +36,8 @@ import EveryMinute from "./EveryMinute.svelte"; |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
<EveryMinute on:minute={onMinute} /> |
|
|
|
|
|
|
|
<EveryMinute bind:now={now} /> |
|
|
|
<ParentEntry |
|
|
|
full={showAllOptions} |
|
|
|
entry={goal} |
|
|
@ -57,6 +54,7 @@ import EveryMinute from "./EveryMinute.svelte"; |
|
|
|
<Progress thinner gray count={msElapsed} target={msLength} /> |
|
|
|
</div> |
|
|
|
</ParentEntry> |
|
|
|
|
|
|
|
<style> |
|
|
|
div.progress { |
|
|
|
padding-top: 0.125em; |
|
|
|