From 52e44bfb9f0ad5d8a638b8adb43e46d85cdd1ce8 Mon Sep 17 00:00:00 2001 From: Denis Bykhov Date: Thu, 9 Jan 2025 07:37:29 +0500 Subject: [PATCH] Fix edit employee (#7609) Signed-off-by: Denis Bykhov --- models/contact/src/index.ts | 5 - models/contact/src/plugin.ts | 1 - .../src/components/EditEmployee.svelte | 193 ------------------ .../src/components/EditPerson.svelte | 88 +++++--- .../src/components/EmployeePresenter.svelte | 10 +- .../src/components/MergePersons.svelte | 4 +- plugins/contact-resources/src/index.ts | 2 - plugins/contact-resources/src/utils.ts | 7 +- .../src/components/CreateApplication.svelte | 2 +- .../src/components/EditDoc.svelte | 4 +- 10 files changed, 71 insertions(+), 245 deletions(-) delete mode 100644 plugins/contact-resources/src/components/EditEmployee.svelte diff --git a/models/contact/src/index.ts b/models/contact/src/index.ts index 69f980fcf2..b417998587 100644 --- a/models/contact/src/index.ts +++ b/models/contact/src/index.ts @@ -518,11 +518,6 @@ export function createModel (builder: Builder): void { grouppingManager: contact.aggregation.GrouppingPersonManager }) - builder.mixin(contact.mixin.Employee, core.class.Class, view.mixin.ObjectEditor, { - editor: contact.component.EditEmployee, - pinned: true - }) - builder.mixin(contact.class.Organization, core.class.Class, view.mixin.ObjectEditor, { editor: contact.component.EditOrganization, pinned: true diff --git a/models/contact/src/plugin.ts b/models/contact/src/plugin.ts index 869ae5f772..e3189451f8 100644 --- a/models/contact/src/plugin.ts +++ b/models/contact/src/plugin.ts @@ -35,7 +35,6 @@ export default mergeIds(contactId, contact, { ContactRefPresenter: '' as AnyComponent, ContactPresenter: '' as AnyComponent, EditPerson: '' as AnyComponent, - EditEmployee: '' as AnyComponent, EditOrganization: '' as AnyComponent, OrganizationPresenter: '' as AnyComponent, Contacts: '' as AnyComponent, diff --git a/plugins/contact-resources/src/components/EditEmployee.svelte b/plugins/contact-resources/src/components/EditEmployee.svelte deleted file mode 100644 index 61f006ecfb..0000000000 --- a/plugins/contact-resources/src/components/EditEmployee.svelte +++ /dev/null @@ -1,193 +0,0 @@ - - - - - -{#if object !== undefined} -
-
- {#key object} - {#if editable} - - {:else} - - {/if} - {/key} -
-
-
- {#if owner} - - {:else} - {firstName} - {/if} -
-
- {#if owner} - - {:else} - {lastName} - {/if} -
-
- -
-
- - {#if channels === undefined} - - {:else} - - {/if} - -
-
-{/if} - - diff --git a/plugins/contact-resources/src/components/EditPerson.svelte b/plugins/contact-resources/src/components/EditPerson.svelte index ce03e780aa..285cb63187 100644 --- a/plugins/contact-resources/src/components/EditPerson.svelte +++ b/plugins/contact-resources/src/components/EditPerson.svelte @@ -14,8 +14,8 @@ // limitations under the License. -->