enhance(frontend): アカウント削除前ダイアログに再ログインすると削除が中断される旨の表記を追加 (MisskeyIO#726)

This commit is contained in:
CyberRex 2024-09-16 21:53:34 +09:00 committed by GitHub
parent 00fd684a7b
commit 2fe5bb0bb3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 19 additions and 1 deletions

View file

@ -114,7 +114,9 @@ async function deleteAccount() {
{
const { canceled } = await os.confirm({
type: 'warning',
text: i18n.ts.deleteAccountConfirm,
text: i18n.ts.deleteAccountConfirmAndWarn,
okWaitInitiate: 'dialog',
okWaitDuration: 5,
});
if (canceled) return;
}
@ -129,6 +131,7 @@ async function deleteAccount() {
await os.alert({
title: i18n.ts._accountDelete.started,
text: i18n.ts._accountDelete.dontLogin,
});
await signout();