From 458bf3716ce2d2f3335043fb441c7f7c5f630895 Mon Sep 17 00:00:00 2001 From: Alexander Onnikov Date: Wed, 19 Jul 2023 19:45:05 +0700 Subject: [PATCH] TSK-1598 Fix tags dialog (#3510) Signed-off-by: Alexander Onnikov --- models/tracker/src/index.ts | 2 +- .../src/components/ObjectsTagsEditorPopup.svelte | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/models/tracker/src/index.ts b/models/tracker/src/index.ts index baade5be08..11113b2678 100644 --- a/models/tracker/src/index.ts +++ b/models/tracker/src/index.ts @@ -1692,7 +1692,7 @@ export function createModel (builder: Builder): void { component: tags.component.ObjectsTagsEditorPopup, element: 'top', fillProps: { - _objects: 'objects' + _objects: 'value' } }, label: tracker.string.Labels, diff --git a/plugins/tags-resources/src/components/ObjectsTagsEditorPopup.svelte b/plugins/tags-resources/src/components/ObjectsTagsEditorPopup.svelte index 3e707f7f6f..45c7a0b25b 100644 --- a/plugins/tags-resources/src/components/ObjectsTagsEditorPopup.svelte +++ b/plugins/tags-resources/src/components/ObjectsTagsEditorPopup.svelte @@ -18,7 +18,8 @@ import tags, { TagElement, TagReference } from '@hcengineering/tags' import TagsPopup from './TagsPopup.svelte' - export let objects: Doc[] + export let value: Doc | Doc[] + $: objects = Array.isArray(value) ? value : [value] let selected: Ref[] = [] let tagRefs: TagReference[] = []