From 5b90949e8cc4932bf3fa85d4efdfd50c42da5362 Mon Sep 17 00:00:00 2001 From: Denis Bykhov <80476319+BykhovDenis@users.noreply.github.com> Date: Wed, 8 Dec 2021 00:44:37 +0600 Subject: [PATCH] Fix EditCandidate (#560) Signed-off-by: Denis Bykhov --- models/contact/src/index.ts | 4 ++++ .../src/components/PersonPresenter.svelte | 15 ++++++++++----- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/models/contact/src/index.ts b/models/contact/src/index.ts index daaa183c0c..e8b6edc5c2 100644 --- a/models/contact/src/index.ts +++ b/models/contact/src/index.ts @@ -164,6 +164,10 @@ export function createModel (builder: Builder): void { editor: contact.component.EditPerson }) + builder.mixin(contact.class.Employee, core.class.Class, view.mixin.ObjectEditor, { + editor: contact.component.EditPerson + }) + builder.mixin(contact.class.Organization, core.class.Class, view.mixin.ObjectEditor, { editor: contact.component.EditOrganization }) diff --git a/plugins/contact-resources/src/components/PersonPresenter.svelte b/plugins/contact-resources/src/components/PersonPresenter.svelte index 1ca02fb20c..e32d26ff3d 100644 --- a/plugins/contact-resources/src/components/PersonPresenter.svelte +++ b/plugins/contact-resources/src/components/PersonPresenter.svelte @@ -15,15 +15,20 @@ -->