diff --git a/plugins/board-resources/src/components/EditCard.svelte b/plugins/board-resources/src/components/EditCard.svelte index 4e2c9237fe..f7def294f4 100644 --- a/plugins/board-resources/src/components/EditCard.svelte +++ b/plugins/board-resources/src/components/EditCard.svelte @@ -56,7 +56,17 @@ let handleMove: (e: Event) => void let checklists: TodoItem[] = [] const mixins: Mixin[] = [] - const ignoreKeys = ['isArchived', 'location', 'title', 'description', 'state', 'members', 'number', 'assignee'] + const ignoreKeys = [ + 'isArchived', + 'location', + 'title', + 'description', + 'state', + 'members', + 'number', + 'assignee', + 'doneState' + ] function change (field: string, value: any) { if (object) { diff --git a/plugins/board-resources/src/components/editor/CardActions.svelte b/plugins/board-resources/src/components/editor/CardActions.svelte index 149e90341c..fbbadce15e 100644 --- a/plugins/board-resources/src/components/editor/CardActions.svelte +++ b/plugins/board-resources/src/components/editor/CardActions.svelte @@ -20,10 +20,8 @@ import { Ref } from '@anticrm/core' import { getClient } from '@anticrm/presentation' import { CheckBox, Label } from '@anticrm/ui' - import { invokeAction } from '@anticrm/view-resources' import plugin from '../../plugin' - import { getCardActions } from '../../utils/CardActionUtils' import { updateCardMembers } from '../../utils/CardUtils' import UserBoxList from '../UserBoxList.svelte' import CardLabels from './CardLabels.svelte' @@ -31,8 +29,6 @@ export let value: Card const client = getClient() - let coverHandler: (e: Event) => void - function updateMembers (e: CustomEvent[]>) { updateCardMembers(value, client, e.detail) } @@ -43,37 +39,40 @@ client.update(value, { doneState: null }) } } - - getCardActions(client, { - _id: { $in: [board.action.Cover] } - }).then(async (result) => { - for (const action of result) { - if (action._id === board.action.Cover) { - coverHandler = (e: Event) => invokeAction(value, e, action.action, action.actionProps) - } - } - }) {#if value} -
-
-
-
+
+
+
+
-
-
-
+
+
+
-
-
-
- +
+
+
{/if} + + diff --git a/plugins/board-resources/src/components/editor/CardCoverEditor.svelte b/plugins/board-resources/src/components/editor/CardCoverEditor.svelte index 088d0b5718..6c47d3dca4 100644 --- a/plugins/board-resources/src/components/editor/CardCoverEditor.svelte +++ b/plugins/board-resources/src/components/editor/CardCoverEditor.svelte @@ -1,6 +1,6 @@ -{#if value} - -{:else} - diff --git a/plugins/board-resources/src/components/editor/CardLabels.svelte b/plugins/board-resources/src/components/editor/CardLabels.svelte index a8aa946a69..c2de08ea5b 100644 --- a/plugins/board-resources/src/components/editor/CardLabels.svelte +++ b/plugins/board-resources/src/components/editor/CardLabels.svelte @@ -15,7 +15,7 @@ -{#if labels} -
- {#each labels as label} - - {/each} - {#if !isInline} -
-{/if} +
+ {#if labels && labels.length > 0} +
+ {#each labels as label} + + {/each} +
+ {:else if !isInline} + + {/if} +