From eef1bd2e0dc1d1d2f1a756d4f016fd82700ffb89 Mon Sep 17 00:00:00 2001 From: Kristina Date: Mon, 23 Sep 2024 09:56:45 +0400 Subject: [PATCH] Group activity by time in document sidebar and fix double show more (#6679) Signed-off-by: Kristina Fefelova --- .../attributes/SetAttributesPresenter.svelte | 1 + .../src/components/sidebar/Activity.svelte | 11 +++++++++-- .../src/components/MarkupDiffPresenter.svelte | 11 +++++++++-- 3 files changed, 19 insertions(+), 4 deletions(-) diff --git a/plugins/activity-resources/src/components/doc-update-message/attributes/SetAttributesPresenter.svelte b/plugins/activity-resources/src/components/doc-update-message/attributes/SetAttributesPresenter.svelte index 605c857b63..e50a586b7a 100644 --- a/plugins/activity-resources/src/components/doc-update-message/attributes/SetAttributesPresenter.svelte +++ b/plugins/activity-resources/src/components/doc-update-message/attributes/SetAttributesPresenter.svelte @@ -69,6 +69,7 @@ attribute={attributeModel.attribute} value={values[0]} {prevValue} + withShowMore={false} showOnlyDiff /> {/if} diff --git a/plugins/document-resources/src/components/sidebar/Activity.svelte b/plugins/document-resources/src/components/sidebar/Activity.svelte index 2a55727b35..c6a02152f9 100644 --- a/plugins/document-resources/src/components/sidebar/Activity.svelte +++ b/plugins/document-resources/src/components/sidebar/Activity.svelte @@ -16,7 +16,12 @@ --> - +{#if withShowMore} + + {#key [value, prevValue]} + + {/key} + +{:else} {#key [value, prevValue]} {/key} - +{/if}