From 84b8d5b2dbe9c02a29cf99c8ffea9bf96013df4f Mon Sep 17 00:00:00 2001 From: Gisle Aune Date: Sun, 10 Jan 2021 11:45:31 +0100 Subject: [PATCH] clean up logs modals and fix progress bars counting on completed but N { authStore.check() @@ -44,9 +42,9 @@ import FocusHandler from "./components/FocusHandler.svelte"; - - - + + + diff --git a/svelte-ui/src/components/ProjectEntry.svelte b/svelte-ui/src/components/ProjectEntry.svelte index d9156ec..a1080c4 100644 --- a/svelte-ui/src/components/ProjectEntry.svelte +++ b/svelte-ui/src/components/ProjectEntry.svelte @@ -30,7 +30,10 @@ $: mdAddTask = {name:"task.add", project}; $: mdProjectEdit = {name:"project.edit", project}; $: mdProjectDelete = {name:"project.delete", project}; - $: progressAmount = project.tasks.map(t => Math.min(t.completedAmount, t.itemAmount) * t.item.groupWeight).reduce((n,m) => n+m, 0); + $: progressAmount = project.tasks.map(t => t.active + ? Math.min(t.completedAmount, t.itemAmount) * t.item.groupWeight + : t.itemAmount * t.item.groupWeight + ).reduce((n,m) => n+m, 0); $: progressTarget = Math.max(project.tasks.map(t => t.itemAmount * t.item.groupWeight).reduce((n,m) => n+m, 0), 1); diff --git a/svelte-ui/src/forms/LogAddForm.svelte b/svelte-ui/src/forms/LogAddForm.svelte deleted file mode 100644 index 7f7ddf4..0000000 --- a/svelte-ui/src/forms/LogAddForm.svelte +++ /dev/null @@ -1,72 +0,0 @@ - - - -
- - - - - - -