From 2d58ab590ce1d5b85757768374eccd2efdc8beaf Mon Sep 17 00:00:00 2001 From: ArneBo Date: Tue, 15 Apr 2025 12:02:03 +0200 Subject: [PATCH] fix(front): manage uploads in show in profile and work now --- front/src/views/auth/ManageUploads.vue | 4 ++-- front/src/views/auth/ProfileBase.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/front/src/views/auth/ManageUploads.vue b/front/src/views/auth/ManageUploads.vue index 0eb6d5fe2..b6073476e 100644 --- a/front/src/views/auth/ManageUploads.vue +++ b/front/src/views/auth/ManageUploads.vue @@ -121,7 +121,7 @@ const globalPrivacyLevel = computed({ for (const [index, item] of items.value.entries()) { if (!item.selected || item.privacy_level === level) - break; + continue; changes.push({ uuid: item.uuid, @@ -135,7 +135,7 @@ const globalPrivacyLevel = computed({ // privacy_level as undefined is only a workaround for items in legacy libraries. axios.patch( 'uploads/bulk_update/', - { params: changes } + changes ) } }) diff --git a/front/src/views/auth/ProfileBase.vue b/front/src/views/auth/ProfileBase.vue index a0cc164d1..bb4a187a7 100644 --- a/front/src/views/auth/ProfileBase.vue +++ b/front/src/views/auth/ProfileBase.vue @@ -94,7 +94,7 @@ const tabs = ref([{ title: t('views.auth.ProfileBase.link.activity') , to: { name: 'profile.activity', params: routerParams } }, ...( - store.state.auth.authenticated && object.value?.full_username === store.state.auth.fullUsername + store.state.auth.authenticated && fullUsername.value === store.state.auth.fullUsername ? [{ title: t('views.auth.ProfileBase.link.manageUploads') , to: { name: 'profile.manageUploads', params: routerParams }