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