diff --git a/models/contact/src/index.ts b/models/contact/src/index.ts index e9f56684a4..9997dc2dc9 100644 --- a/models/contact/src/index.ts +++ b/models/contact/src/index.ts @@ -225,7 +225,8 @@ export function createModel (builder: Builder): void { ) builder.mixin(contact.class.Member, core.class.Class, view.mixin.ObjectEditor, { - editor: contact.component.EditMember + editor: contact.component.EditMember, + pinned: true }) builder.createDoc( @@ -253,15 +254,18 @@ export function createModel (builder: Builder): void { ) builder.mixin(contact.class.Person, core.class.Class, view.mixin.ObjectEditor, { - editor: contact.component.EditPerson + editor: contact.component.EditPerson, + pinned: true }) builder.mixin(contact.class.Employee, core.class.Class, view.mixin.ObjectEditor, { - editor: contact.component.EditPerson + editor: contact.component.EditPerson, + pinned: true }) builder.mixin(contact.class.Organization, core.class.Class, view.mixin.ObjectEditor, { - editor: contact.component.EditOrganization + editor: contact.component.EditOrganization, + pinned: true }) builder.mixin(contact.class.Organization, core.class.Class, view.mixin.AttributeEditor, { diff --git a/models/view/src/index.ts b/models/view/src/index.ts index 816f17df04..70d8d8784e 100644 --- a/models/view/src/index.ts +++ b/models/view/src/index.ts @@ -136,6 +136,7 @@ export class TAttributePresenter extends TClass implements AttributePresenter { @Mixin(view.mixin.ObjectEditor, core.class.Class) export class TObjectEditor extends TClass implements ObjectEditor { editor!: AnyComponent + pinned?: boolean } @Mixin(view.mixin.ObjectEditorHeader, core.class.Class) diff --git a/packages/panel/src/components/Panel.svelte b/packages/panel/src/components/Panel.svelte index fc9ead5394..470d967f42 100644 --- a/packages/panel/src/components/Panel.svelte +++ b/packages/panel/src/components/Panel.svelte @@ -87,7 +87,7 @@ {#if $$slots.header}