From a2d8bfc5e35e628973a34e63ad44c7b55867f5e9 Mon Sep 17 00:00:00 2001 From: Denis Bykhov <80476319+BykhovDenis@users.noreply.github.com> Date: Mon, 30 May 2022 13:35:54 +0600 Subject: [PATCH] 1918_fix (#1921) Signed-off-by: Denis Bykhov <80476319+BykhovDenis@users.noreply.github.com> --- models/contact/src/index.ts | 1 + models/core/src/core.ts | 1 + .../src/components/ClassAttributes.svelte | 42 +++++++++++++++++-- 3 files changed, 40 insertions(+), 4 deletions(-) diff --git a/models/contact/src/index.ts b/models/contact/src/index.ts index 36db96d998..9f6e4fd9bd 100644 --- a/models/contact/src/index.ts +++ b/models/contact/src/index.ts @@ -99,6 +99,7 @@ export class TPerson extends TContact implements Person {} export class TOrganization extends TContact implements Organization {} @Model(contact.class.Status, core.class.AttachedDoc, DOMAIN_CONTACT) +@UX(contact.string.Status) export class TStatus extends TAttachedDoc implements Status { attachedTo!: Ref attachedToClass!: Ref> diff --git a/models/core/src/core.ts b/models/core/src/core.ts index ed50ecf27a..78cc05ce74 100644 --- a/models/core/src/core.ts +++ b/models/core/src/core.ts @@ -84,6 +84,7 @@ export class TAttachedDoc extends TDoc implements AttachedDoc { collection!: string } +@UX(core.string.ClassLabel) @Model(core.class.Class, core.class.Doc, DOMAIN_MODEL) export class TClass extends TDoc implements Class { kind!: ClassifierKind diff --git a/plugins/setting-resources/src/components/ClassAttributes.svelte b/plugins/setting-resources/src/components/ClassAttributes.svelte index ee84590ed3..0a02afa942 100644 --- a/plugins/setting-resources/src/components/ClassAttributes.svelte +++ b/plugins/setting-resources/src/components/ClassAttributes.svelte @@ -13,7 +13,18 @@ // limitations under the License. --> @@ -134,7 +161,7 @@ {#each attributes as attr} - {@const attrType = attr.type._class === core.class.RefTo ? getRefClassTo(attr.type) : undefined} + {@const attrType = getAttrType(attr.type)} { @@ -159,6 +186,13 @@ {#if attrType !== undefined} :