From fb70658f236184c30994a66589f6844c2b618852 Mon Sep 17 00:00:00 2001 From: Bhasher Date: Mon, 8 Jan 2024 22:14:16 +0100 Subject: [PATCH] Add card from columns --- .../src/lib/components/project/Column.svelte | 92 +++++++++---------- .../src/lib/components/project/Project.svelte | 51 +++++----- frontend/src/lib/types/Card.ts | 28 ++++-- frontend/src/lib/types/CardTag.ts | 19 ++-- frontend/src/lib/types/TagOption.ts | 2 +- 5 files changed, 104 insertions(+), 88 deletions(-) diff --git a/frontend/src/lib/components/project/Column.svelte b/frontend/src/lib/components/project/Column.svelte index a4943d8..d368bcc 100644 --- a/frontend/src/lib/components/project/Column.svelte +++ b/frontend/src/lib/components/project/Column.svelte @@ -1,65 +1,56 @@ +
{ e.preventDefault(); }} @@ -70,16 +61,17 @@ type="text" on:blur={async () => { if (lastTitle === title) return; - if (!optionId || !primary_tag_id) return; - await updateTagOptionAPI({ - id: optionId, - tag_id: primary_tag_id, - value: title - }); - lastTitle = title; - cards.reload(); + if (!option || !primaryTag) return; + // option; + // await updateTagOptionAPI({ + // id: optionId, + // tag_id: primary_tag_id, + // value: title + // }); + // lastTitle = title; + // cards.reload(); }} - disabled={optionId === null} + disabled={option === null} /> {columnCards.length} diff --git a/frontend/src/lib/components/project/Project.svelte b/frontend/src/lib/components/project/Project.svelte index aa0fe4b..008f1ac 100644 --- a/frontend/src/lib/components/project/Project.svelte +++ b/frontend/src/lib/components/project/Project.svelte @@ -1,6 +1,8 @@