feat(client): アカウント削除に確認ダイアログを出すように

This commit is contained in:
syuilo
2021-11-14 13:27:46 +09:00
parent 50e1040f1e
commit c864d700d2
3 changed files with 17 additions and 0 deletions

View File

@ -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: {