From 74e25eef6e464cd58c98466d1f90657776a0af3f Mon Sep 17 00:00:00 2001 From: Gisle Aune Date: Sat, 3 Apr 2021 14:01:50 +0200 Subject: [PATCH] added buttons to move projects to completed/failed when you're out of stuff to do. --- svelte-ui/src/components/Option.svelte | 36 +++++++++++++++++-- svelte-ui/src/components/ProjectEntry.svelte | 37 ++++++++++---------- svelte-ui/src/components/TaskEntry.svelte | 15 +++++--- 3 files changed, 64 insertions(+), 24 deletions(-) diff --git a/svelte-ui/src/components/Option.svelte b/svelte-ui/src/components/Option.svelte index 2df1992..de978f4 100644 --- a/svelte-ui/src/components/Option.svelte +++ b/svelte-ui/src/components/Option.svelte @@ -4,7 +4,7 @@ import modalStore from "../stores/modal"; export let open: ModalData = {name: "none"}; - export let green: boolean = false; + export let color: "red" | "green" | "blue" | "yellow" | "purple" | undefined = undefined; export let disabled: boolean = false; const dispatch = createEventDispatcher(); @@ -18,7 +18,7 @@ } -
+
\ No newline at end of file diff --git a/svelte-ui/src/components/ProjectEntry.svelte b/svelte-ui/src/components/ProjectEntry.svelte index d52beab..7b5112b 100644 --- a/svelte-ui/src/components/ProjectEntry.svelte +++ b/svelte-ui/src/components/ProjectEntry.svelte @@ -1,7 +1,7 @@