add destructive variant to alert dialogs for destructive actions

This commit is contained in:
pa
2026-03-13 23:10:29 +09:00
parent 9b6ca42d9d
commit 1f5acd546d
17 changed files with 77 additions and 40 deletions

View File

@@ -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;

View File

@@ -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;