fix(front): manage uploads in show in profile and work now
This commit is contained in:
parent
f75cbf5884
commit
2d58ab590c
|
@ -121,7 +121,7 @@ const globalPrivacyLevel = computed<PrivacyLevel | undefined>({
|
||||||
|
|
||||||
for (const [index, item] of items.value.entries()) {
|
for (const [index, item] of items.value.entries()) {
|
||||||
if (!item.selected || item.privacy_level === level)
|
if (!item.selected || item.privacy_level === level)
|
||||||
break;
|
continue;
|
||||||
|
|
||||||
changes.push({
|
changes.push({
|
||||||
uuid: item.uuid,
|
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.
|
// 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']>(
|
axios.patch<paths['/api/v2/uploads/bulk_update/']['patch']['responses']['200']['content']['application/json']>(
|
||||||
'uploads/bulk_update/',
|
'uploads/bulk_update/',
|
||||||
{ params: changes }
|
changes
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
@ -94,7 +94,7 @@ const tabs = ref([{
|
||||||
title: t('views.auth.ProfileBase.link.activity') ,
|
title: t('views.auth.ProfileBase.link.activity') ,
|
||||||
to: { name: 'profile.activity', params: routerParams }
|
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') ,
|
title: t('views.auth.ProfileBase.link.manageUploads') ,
|
||||||
to: { name: 'profile.manageUploads', params: routerParams }
|
to: { name: 'profile.manageUploads', params: routerParams }
|
||||||
|
|
Loading…
Reference in New Issue