From 7d3cbe3b6e2a95b02d5445a1144e4bcfb17f89dc Mon Sep 17 00:00:00 2001 From: guerler Date: Wed, 29 May 2024 14:36:09 +0300 Subject: [PATCH] Only display optional activities when user clicks on more --- .../components/ActivityBar/ActivityBar.vue | 8 ++----- .../ActivityBar/ActivitySettings.vue | 15 +++++++------ client/src/composables/useActivityAction.ts | 21 +++++++++++++++++++ client/src/stores/activitySetup.ts | 14 ++++++++++++- client/src/stores/activityStore.ts | 2 ++ 5 files changed, 47 insertions(+), 13 deletions(-) create mode 100644 client/src/composables/useActivityAction.ts diff --git a/client/src/components/ActivityBar/ActivityBar.vue b/client/src/components/ActivityBar/ActivityBar.vue index 4a26b363cf91..cde4d7b190ad 100644 --- a/client/src/components/ActivityBar/ActivityBar.vue +++ b/client/src/components/ActivityBar/ActivityBar.vue @@ -179,11 +179,7 @@ watch( :to="activity.to" @click="onToggleSidebar()" /> { if (props.query?.length > 0) { @@ -45,8 +47,6 @@ const foundActivities: ComputedRef = computed(() => { return filteredActivities.value.length > 0; }); -function onClick(activity: Activity) {} - function onFavorite(activity: Activity) { if (activity.optional) { activity.visible = !activity.visible; @@ -62,7 +62,10 @@ function onRemove(activity: Activity) {
-