From c864d700d24ba218aeaabb9d782abbbe8c97f6c0 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 14 Nov 2021 13:27:46 +0900 Subject: [PATCH] =?UTF-8?q?feat(client):=20=E3=82=A2=E3=82=AB=E3=82=A6?= =?UTF-8?q?=E3=83=B3=E3=83=88=E5=89=8A=E9=99=A4=E3=81=AB=E7=A2=BA=E8=AA=8D?= =?UTF-8?q?=E3=83=80=E3=82=A4=E3=82=A2=E3=83=AD=E3=82=B0=E3=82=92=E5=87=BA?= =?UTF-8?q?=E3=81=99=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 7 +++++++ locales/ja-JP.yml | 1 + packages/client/src/pages/settings/delete-account.vue | 9 +++++++++ 3 files changed, 17 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index cd90898fe..0fc5351d0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,13 @@ --> +## 12.x.x (unreleased) + +### Improvements +- アカウント削除に確認ダイアログを出すように + +### Bugfixes + ## 12.96.1 (2021/11/13) ### Improvements - npm scriptの互換性を向上 diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index ababad4f0..0dbe35216 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -806,6 +806,7 @@ muteThread: "スレッドをミュート" unmuteThread: "スレッドのミュートを解除" ffVisibility: "つながりの公開範囲" ffVisibilityDescription: "自分のフォロー/フォロワー情報の公開範囲を設定できます。" +deleteAccountConfirm: "アカウントが削除されます。よろしいですか?" _emailUnavailable: used: "既に使用されています" diff --git a/packages/client/src/pages/settings/delete-account.vue b/packages/client/src/pages/settings/delete-account.vue index 018f7c795..77dc0fe2a 100644 --- a/packages/client/src/pages/settings/delete-account.vue +++ b/packages/client/src/pages/settings/delete-account.vue @@ -45,6 +45,15 @@ export default defineComponent({ methods: { async deleteAccount() { + { + const { canceled } = await os.dialog({ + type: 'warning', + text: this.$ts.deleteAccountConfirm, + showCancelButton: true + }); + if (canceled) return; + } + const { canceled, result: password } = await os.dialog({ title: this.$ts.password, input: {