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

environments/review-docs-feat-z0hkbz/deployments/21073
ArneBo 2025-04-15 12:02:03 +02:00
rodzic f75cbf5884
commit 2d58ab590c
2 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

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

Wyświetl plik

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