mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 06:43:51 +02:00
add destructive variant to alert dialogs for destructive actions
This commit is contained in:
@@ -232,7 +232,8 @@ export function promptClearAvatarHistory() {
|
||||
modalStore
|
||||
.confirm({
|
||||
description: t('confirm.clear_avatar_history'),
|
||||
title: 'Confirm'
|
||||
title: t('confirm.title'),
|
||||
destructive: true
|
||||
})
|
||||
.then(({ ok }) => {
|
||||
if (!ok) return;
|
||||
@@ -472,7 +473,7 @@ export function selectAvatarWithConfirmation(id) {
|
||||
modalStore
|
||||
.confirm({
|
||||
description: t('confirm.select_avatar'),
|
||||
title: 'Confirm'
|
||||
title: t('confirm.title')
|
||||
})
|
||||
.then(({ ok }) => {
|
||||
if (!ok) return;
|
||||
|
||||
@@ -746,7 +746,8 @@ export function leaveGroupPrompt(groupId) {
|
||||
modalStore
|
||||
.confirm({
|
||||
description: t('confirm.leave_group'),
|
||||
title: t('confirm.title')
|
||||
title: t('confirm.title'),
|
||||
destructive: true
|
||||
})
|
||||
.then(({ ok }) => {
|
||||
if (!ok) return;
|
||||
|
||||
Reference in New Issue
Block a user