fix(front): manage uploads in show in profile and work now

This commit is contained in:
ArneBo 2025-04-15 12:02:03 +02:00
parent f75cbf5884
commit 2d58ab590c
2 changed files with 3 additions and 3 deletions

View File

@ -121,7 +121,7 @@ const globalPrivacyLevel = computed<PrivacyLevel | undefined>({
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<PrivacyLevel | undefined>({
// privacy_level as undefined is only a workaround for items in legacy libraries.
axios.patch<paths['/api/v2/uploads/bulk_update/']['patch']['responses']['200']['content']['application/json']>(
'uploads/bulk_update/',
{ params: changes }
changes
)
}
})

View File

@ -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 }