From 2a6698db8951c089ee521aa0a0b6debe252a26ac Mon Sep 17 00:00:00 2001 From: jingrow Date: Mon, 29 Dec 2025 23:00:57 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=9E=84AccountProfile.vue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../settings/profile/AccountProfile.vue | 44 +++++++++++++------ .../components/settings/profile/TFADialog.vue | 13 +++--- jcloud/translations/zh.csv | 5 +++ 3 files changed, 43 insertions(+), 19 deletions(-) diff --git a/dashboard/src/components/settings/profile/AccountProfile.vue b/dashboard/src/components/settings/profile/AccountProfile.vue index acbb28a..9000d76 100644 --- a/dashboard/src/components/settings/profile/AccountProfile.vue +++ b/dashboard/src/components/settings/profile/AccountProfile.vue @@ -53,16 +53,12 @@ @@ -77,12 +73,8 @@ @@ -246,6 +238,30 @@ export default { user() { return this.$team?.pg?.user_info; }, + twoFactorAuthTitle() { + return this.user.is_2fa_enabled + ? this.$t('Disable Two-Factor Authentication') + : this.$t('Enable Two-Factor Authentication'); + }, + twoFactorAuthSubtitle() { + return this.user.is_2fa_enabled + ? this.$t('Disable two-factor authentication for your account') + : this.$t('Enable two-factor authentication for your account to add an extra layer of security'); + }, + twoFactorAuthButtonLabel() { + return this.user.is_2fa_enabled ? this.$t('Disable') : this.$t('Enable'); + }, + accountStatusTitle() { + return this.teamEnabled ? this.$t('Disable Account') : this.$t('Enable Account'); + }, + accountStatusSubtitle() { + return this.teamEnabled + ? this.$t('Disable your account and stop billing') + : this.$t('Enable your account and resume billing'); + }, + accountStatusButtonLabel() { + return this.teamEnabled ? this.$t('Disable') : this.$t('Enable'); + }, }, resources: { updateProfile() { diff --git a/dashboard/src/components/settings/profile/TFADialog.vue b/dashboard/src/components/settings/profile/TFADialog.vue index bb46641..46648b4 100644 --- a/dashboard/src/components/settings/profile/TFADialog.vue +++ b/dashboard/src/components/settings/profile/TFADialog.vue @@ -1,11 +1,7 @@