diff --git a/plugins/board-resources/src/components/EditCard.svelte b/plugins/board-resources/src/components/EditCard.svelte index 96cb3076da..ec13ead43f 100644 --- a/plugins/board-resources/src/components/EditCard.svelte +++ b/plugins/board-resources/src/components/EditCard.svelte @@ -44,10 +44,11 @@ let handleMove: () => void $: cardQuery.query(_class, { _id }, async (result) => { - object = result[0] - }) + object = result[0] + }) - $: object?.state && stateQuery.query(task.class.State, { _id: object.state }, async (result) => { + $: object?.state && + stateQuery.query(task.class.State, { _id: object.state }, async (result) => { state = result[0] }) @@ -62,7 +63,7 @@ } }) - function change(field: string, value: any) { + function change (field: string, value: any) { if (object) { updateCard(client, object, field, value) } diff --git a/plugins/board-resources/src/components/KanbanCard.svelte b/plugins/board-resources/src/components/KanbanCard.svelte index 3614074bee..8e60e9529d 100644 --- a/plugins/board-resources/src/components/KanbanCard.svelte +++ b/plugins/board-resources/src/components/KanbanCard.svelte @@ -38,7 +38,7 @@ } function canDropAttachment (e: DragEvent): boolean { - return !!e.dataTransfer?.items && e.dataTransfer?.items.length > 0; + return !!e.dataTransfer?.items && e.dataTransfer?.items.length > 0 } diff --git a/plugins/board-resources/src/components/KanbanPanelEmpty.svelte b/plugins/board-resources/src/components/KanbanPanelEmpty.svelte index cd23167c78..51e289c49b 100644 --- a/plugins/board-resources/src/components/KanbanPanelEmpty.svelte +++ b/plugins/board-resources/src/components/KanbanPanelEmpty.svelte @@ -1,67 +1,68 @@ -
- {#if isAdding} - -
-
- {:else} -
+ {:else} +