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