From 0daac29984e9949661ba64047b6d12d649ff13f5 Mon Sep 17 00:00:00 2001 From: Kristina Date: Fri, 10 May 2024 19:14:57 +0400 Subject: [PATCH] Remove extra user status (#5578) Signed-off-by: Kristina Fefelova --- models/contact/src/index.ts | 2 +- .../activity-resources/src/components/BasePreview.svelte | 7 ++----- .../src/components/chat/ChannelAside.svelte | 1 + .../src/components/chat/create/CreateDirectChat.svelte | 1 + .../contact-resources/src/components/AssigneeBox.svelte | 2 ++ .../src/components/EmployeePresenter.svelte | 4 ++-- .../src/components/PersonPresenter.svelte | 2 +- .../src/components/SelectUsersPopup.svelte | 2 ++ plugins/contact-resources/src/components/UsersList.svelte | 4 +++- .../src/components/issues/AssigneeEditor.svelte | 2 ++ 10 files changed, 17 insertions(+), 10 deletions(-) diff --git a/models/contact/src/index.ts b/models/contact/src/index.ts index f6859b0399..c0f4f1b760 100644 --- a/models/contact/src/index.ts +++ b/models/contact/src/index.ts @@ -446,7 +446,7 @@ export function createModel (builder: Builder): void { attachTo: contact.mixin.Employee, descriptor: view.viewlet.Table, config: [ - '', + { key: '', props: { showStatus: true } }, 'city', 'attachments', 'modifiedOn', diff --git a/plugins/activity-resources/src/components/BasePreview.svelte b/plugins/activity-resources/src/components/BasePreview.svelte index 259dffe337..9f949569a1 100644 --- a/plugins/activity-resources/src/components/BasePreview.svelte +++ b/plugins/activity-resources/src/components/BasePreview.svelte @@ -15,7 +15,7 @@ @@ -118,7 +115,7 @@ {#if headerObject} {:else if person} - + {:else} {/if} diff --git a/plugins/chunter-resources/src/components/chat/ChannelAside.svelte b/plugins/chunter-resources/src/components/chat/ChannelAside.svelte index 1ead45d395..f8aa5caf0f 100644 --- a/plugins/chunter-resources/src/components/chat/ChannelAside.svelte +++ b/plugins/chunter-resources/src/components/chat/ChannelAside.svelte @@ -103,6 +103,7 @@ { okLabel: presentation.string.Add, disableDeselectFor: disabledRemoveFor, + skipInactive: true, selected: members, showStatus: true }, diff --git a/plugins/chunter-resources/src/components/chat/create/CreateDirectChat.svelte b/plugins/chunter-resources/src/components/chat/create/CreateDirectChat.svelte index 809adbd1df..01c00d94a8 100644 --- a/plugins/chunter-resources/src/components/chat/create/CreateDirectChat.svelte +++ b/plugins/chunter-resources/src/components/chat/create/CreateDirectChat.svelte @@ -115,6 +115,7 @@ { okLabel: presentation.string.Next, skipCurrentAccount: false, + skipInactive: true, selected: employeeIds, showStatus: true }, diff --git a/plugins/contact-resources/src/components/AssigneeBox.svelte b/plugins/contact-resources/src/components/AssigneeBox.svelte index a292f38472..88efc44e60 100644 --- a/plugins/contact-resources/src/components/AssigneeBox.svelte +++ b/plugins/contact-resources/src/components/AssigneeBox.svelte @@ -66,6 +66,7 @@ export let shouldShowName: boolean = true export let id: string | undefined = undefined export let short: boolean = false + export let showStatus = false const icon = IconPerson @@ -147,6 +148,7 @@ shouldShowName={false} shouldShowPlaceholder onEmployeeEdit={_click} + {showStatus} /> {:else}