diff --git a/frontend/app/components/modules/collection/components/details/header.vue b/frontend/app/components/modules/collection/components/details/header.vue
index fa821d30..155fd543 100644
--- a/frontend/app/components/modules/collection/components/details/header.vue
+++ b/frontend/app/components/modules/collection/components/details/header.vue
@@ -124,14 +124,25 @@ SPDX-License-Identifier: MIT
"
>
![Collection image]()
+
@@ -153,9 +164,9 @@ SPDX-License-Identifier: MIT
-
+ class="flex flex-col gap-1.5"
+ >
+
+
+
+
+
+
+
import { computed, onServerPrefetch, watch, ref } from 'vue';
import { createError, showError, useRequestFetch } from 'nuxt/app';
-import { useQuery } from '@tanstack/vue-query';
+import { useQuery, useQueryClient } from '@tanstack/vue-query';
import { storeToRefs } from 'pinia';
import LfxCollectionProjectItem from '../components/details/collection-project-item.vue';
import LfxCollectionProjectItemLoading from '../components/details/collection-project-item-loading.vue';
@@ -233,6 +233,7 @@ const { headerTopClass } = storeToRefs(useBannerStore());
const { user } = storeToRefs(useAuthStore());
const requestFetch = useRequestFetch();
+const queryClient = useQueryClient();
const queryKey = computed(() => [TanstackKey.COLLECTION, props.slug]);
const {
@@ -247,11 +248,7 @@ const {
retry: false,
});
-const currentCollection = ref(collection.value);
-
-watch(collection, (newCollection) => {
- currentCollection.value = newCollection;
-});
+const currentCollection = computed(() => collection.value);
const detailCollectionIds = computed(() => (currentCollection.value ? [currentCollection.value.id] : []));
useLikeCounts(detailCollectionIds);
@@ -347,7 +344,7 @@ const updateOnlyLFProjects = (value: boolean) => {
};
const handleCollectionUpdated = (collection: Collection) => {
- currentCollection.value = collection;
+ queryClient.setQueryData(queryKey.value, collection);
refetch();
};
diff --git a/frontend/app/components/modules/project/components/shared/header.vue b/frontend/app/components/modules/project/components/shared/header.vue
index df147faf..0de869cd 100644
--- a/frontend/app/components/modules/project/components/shared/header.vue
+++ b/frontend/app/components/modules/project/components/shared/header.vue
@@ -28,7 +28,7 @@ SPDX-License-Identifier: MIT
diff --git a/frontend/app/components/shared/layout/menu.vue b/frontend/app/components/shared/layout/menu.vue
index a59a0d3f..d402b191 100644
--- a/frontend/app/components/shared/layout/menu.vue
+++ b/frontend/app/components/shared/layout/menu.vue
@@ -10,9 +10,12 @@ SPDX-License-Identifier: MIT
-
-
-
+
+
+
+
+
+