mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-22 16:23:50 +02:00
add destructive variant to alert dialogs for destructive actions
This commit is contained in:
@@ -287,7 +287,8 @@ export function useAvatarDialogCommands(
|
||||
title: t('confirm.title'),
|
||||
description: t('confirm.command_question', {
|
||||
command: t('dialog.avatar.actions.block')
|
||||
})
|
||||
}),
|
||||
destructive: true
|
||||
}),
|
||||
handler: (id) => {
|
||||
avatarModerationRequest
|
||||
@@ -369,7 +370,8 @@ export function useAvatarDialogCommands(
|
||||
title: t('confirm.title'),
|
||||
description: t('confirm.command_question', {
|
||||
command: t('dialog.avatar.actions.delete')
|
||||
})
|
||||
}),
|
||||
destructive: true
|
||||
}),
|
||||
handler: (id) => {
|
||||
avatarRequest
|
||||
@@ -399,7 +401,8 @@ export function useAvatarDialogCommands(
|
||||
title: t('confirm.title'),
|
||||
description: t('confirm.command_question', {
|
||||
command: t('dialog.avatar.actions.delete_impostor')
|
||||
})
|
||||
}),
|
||||
destructive: true
|
||||
}),
|
||||
handler: (id) => {
|
||||
avatarRequest
|
||||
@@ -432,7 +435,8 @@ export function useAvatarDialogCommands(
|
||||
title: t('confirm.title'),
|
||||
description: t('confirm.command_question', {
|
||||
command: t('dialog.avatar.actions.regenerate_impostor')
|
||||
})
|
||||
}),
|
||||
destructive: true
|
||||
}),
|
||||
handler: (id) => {
|
||||
avatarRequest
|
||||
|
||||
Reference in New Issue
Block a user