change admin edit role modal to edit user (#7035)

change edit role modal to edit user
This commit is contained in:
Prospector
2026-08-07 13:20:05 -07:00
committed by GitHub
parent bca5303ae3
commit 2e8aaa31be
22 changed files with 330 additions and 343 deletions
+6
View File
@@ -52,6 +52,8 @@ import { onBeforeRouteUpdate, useRoute, useRouter } from 'vue-router'
import {
block_user,
change_user_avatar,
delete_user_avatar,
get_blocked_users,
get_user_collections,
get_user_organizations,
@@ -119,6 +121,10 @@ const userProfile = provideUserProfile({
getOrganizations: get_user_organizations,
getCollections: get_user_collections,
patchUser: patch_user,
changeAvatar: async (userId, file, extension) => {
await change_user_avatar(userId, new Uint8Array(await file.arrayBuffer()), extension)
},
deleteAvatar: delete_user_avatar,
getBlockedUsers: get_blocked_users,
blockUser: block_user,
unblockUser: unblock_user,
+3
View File
@@ -34,6 +34,9 @@ const userProfile = provideUserProfile({
getOrganizations: (userId) => client.labrinth.users_v2.getOrganizations(userId),
getCollections: (userId) => client.labrinth.users_v2.getCollections(userId),
patchUser: (userId, patch) => client.labrinth.users_v2.patch(userId, patch),
changeAvatar: (userId, file, extension) =>
client.labrinth.users_v2.changeIcon(userId, file, extension),
deleteAvatar: (userId) => client.labrinth.users_v2.deleteIcon(userId),
getBlockedUsers: () => client.labrinth.blocked_users_v3.list(),
blockUser: (userId) => client.labrinth.blocked_users_v3.block(userId),
unblockUser: (userId) => client.labrinth.blocked_users_v3.unblock(userId),