From c75c077e956c99fb70504d2cbbd895da49ae5b61 Mon Sep 17 00:00:00 2001 From: Denis Bykhov Date: Sun, 4 Jan 2026 22:19:18 +0500 Subject: [PATCH] show boolean attributes in card title (#10354) Signed-off-by: Denis Bykhov --- .../src/components/CardPresenter.svelte | 24 ++++++++++++------- .../src/components/CardVersionSelector.svelte | 2 +- .../src/components/CardsPopup.svelte | 2 +- .../src/components/settings/EditRole.svelte | 1 + plugins/card-resources/src/utils.ts | 20 +++++++++++----- .../typeEditors/BooleanTypeEditor.svelte | 22 +++++++++++++---- .../typeEditors/IdentifierTypeEditor.svelte | 11 +++++++-- 7 files changed, 58 insertions(+), 24 deletions(-) diff --git a/plugins/card-resources/src/components/CardPresenter.svelte b/plugins/card-resources/src/components/CardPresenter.svelte index 654d6a9e12..54501d4be8 100644 --- a/plugins/card-resources/src/components/CardPresenter.svelte +++ b/plugins/card-resources/src/components/CardPresenter.svelte @@ -14,7 +14,7 @@ --> @@ -49,3 +57,7 @@ change() }} /> + + + diff --git a/plugins/setting-resources/src/components/typeEditors/IdentifierTypeEditor.svelte b/plugins/setting-resources/src/components/typeEditors/IdentifierTypeEditor.svelte index 42d87b4526..17d5ee4ef5 100644 --- a/plugins/setting-resources/src/components/typeEditors/IdentifierTypeEditor.svelte +++ b/plugins/setting-resources/src/components/typeEditors/IdentifierTypeEditor.svelte @@ -44,12 +44,12 @@ $: currentSequence = sequences.find((s) => s._id === seq) async function change () { + if (!editable) return if (identifiers.has(identifier.toUpperCase())) return if (identifier.toUpperCase() === (currentSequence?.prefix?.toUpperCase() ?? '')) return if (currentSequence !== undefined) { await client.update(currentSequence, { prefix: identifier.toUpperCase() }) } else { - if (!editable) return const newSeq = await client.createDoc(core.class.CustomSequence, core.space.Workspace, { prefix: identifier.toUpperCase(), sequence: 0, @@ -71,7 +71,14 @@
- + {#if editable && identifiers.has(identifier.toUpperCase())}