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
+2 -1
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;