mirror of
https://github.com/modrinth/code.git
synced 2026-08-27 10:04:52 +00:00
change admin edit role modal to edit user (#7035)
change edit role modal to edit user
This commit is contained in:
@@ -136,10 +136,6 @@ const messages = defineMessages({
|
||||
id: 'profile.button.unblock',
|
||||
defaultMessage: 'Unblock',
|
||||
},
|
||||
editRoleButton: {
|
||||
id: 'profile.button.edit-role',
|
||||
defaultMessage: 'Edit role',
|
||||
},
|
||||
infoButton: {
|
||||
id: 'profile.button.info',
|
||||
defaultMessage: 'View user details',
|
||||
@@ -220,7 +216,7 @@ const emit = defineEmits<{
|
||||
toggleAffiliate: []
|
||||
openInfo: []
|
||||
openAnalytics: []
|
||||
editRole: []
|
||||
editUser: []
|
||||
}>()
|
||||
|
||||
const { formatMessage } = useVIntl()
|
||||
@@ -306,10 +302,10 @@ const moreActions = computed<OverflowMenuOption[]>(() => [
|
||||
shown: props.showStaffActions && props.isAdmin,
|
||||
},
|
||||
{
|
||||
id: 'edit-role',
|
||||
label: formatMessage(messages.editRoleButton),
|
||||
id: 'edit-user',
|
||||
label: 'Edit user',
|
||||
icon: EditIcon,
|
||||
action: () => emit('editRole'),
|
||||
action: () => emit('editUser'),
|
||||
tone: 'orange',
|
||||
shown: props.showStaffActions && props.isAdmin,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user