From 85c285741adc180c525524f01bb9b9383bbc520c Mon Sep 17 00:00:00 2001 From: Alexander Onnikov Date: Wed, 18 Sep 2024 17:49:17 +0700 Subject: [PATCH] UBERF-8164 Display activity in wiki document sidebar (#6620) Signed-off-by: Alexander Onnikov --- .../src/components/ActivityFilter.svelte | 49 +++++----- plugins/activity-resources/src/index.ts | 1 + .../src/components/EditDoc.svelte | 14 ++- .../src/components/sidebar/Activity.svelte | 97 +++++++++++++++++++ 4 files changed, 133 insertions(+), 28 deletions(-) create mode 100644 plugins/document-resources/src/components/sidebar/Activity.svelte diff --git a/plugins/activity-resources/src/components/ActivityFilter.svelte b/plugins/activity-resources/src/components/ActivityFilter.svelte index 725dc27249..acc77ac91a 100644 --- a/plugins/activity-resources/src/components/ActivityFilter.svelte +++ b/plugins/activity-resources/src/components/ActivityFilter.svelte @@ -29,6 +29,7 @@ export let messages: ActivityMessage[] export let object: Doc export let isNewestFirst = false + export let showFilter = true const allId = activity.ids.AllFilter const client = getClient() @@ -117,30 +118,32 @@ ) -
-{#if selectedFiltersRefs === 'All'} -
-
-{:else} - {#each selectedFilters as filter} -
-