diff --git a/models/contact/src/index.ts b/models/contact/src/index.ts index aeb79ad528..cba6992166 100644 --- a/models/contact/src/index.ts +++ b/models/contact/src/index.ts @@ -158,6 +158,9 @@ export class TEmployee extends TPerson implements Employee { statuses?: number mergedTo?: Ref + + @Prop(TypeString(), contact.string.DisplayName) + displayName?: string | null } @Model(contact.class.EmployeeAccount, core.class.Account) @@ -284,7 +287,7 @@ export function createModel (builder: Builder): void { }) builder.mixin(contact.class.Employee, core.class.Class, view.mixin.ObjectEditor, { - editor: contact.component.EditPerson, + editor: contact.component.EditEmployee, pinned: true }) diff --git a/models/contact/src/plugin.ts b/models/contact/src/plugin.ts index df9348f777..e9a74f3f89 100644 --- a/models/contact/src/plugin.ts +++ b/models/contact/src/plugin.ts @@ -29,6 +29,7 @@ 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/packages/presentation/src/components/AddMembersPopup.svelte b/packages/presentation/src/components/AddMembersPopup.svelte index 04aef6102e..87e326ff27 100644 --- a/packages/presentation/src/components/AddMembersPopup.svelte +++ b/packages/presentation/src/components/AddMembersPopup.svelte @@ -1,15 +1,19 @@ {#if inline} @@ -43,23 +51,23 @@  #{cutId(value._id.toString())} {:else}
-
- -
-
-
-
- {#await getUser(client, value.modifiedBy) then user} - {#if user}{formatName(user.name)}{/if} - {/await} -
-
+ {#await getEmployee(value) then employee} +
+
- - - - -
+
+
+
+ {#if employee}{getName(employee)}{/if} +
+
+
+ + + + +
+ {/await}
{/if} diff --git a/plugins/chunter-resources/src/components/PinnedMessagesPopup.svelte b/plugins/chunter-resources/src/components/PinnedMessagesPopup.svelte index 65956e13ca..a6eeb0913f 100644 --- a/plugins/chunter-resources/src/components/PinnedMessagesPopup.svelte +++ b/plugins/chunter-resources/src/components/PinnedMessagesPopup.svelte @@ -1,8 +1,8 @@