fix 2fa translations

This commit is contained in:
Girish Ramakrishnan
2026-03-16 16:56:03 +05:30
parent 676cb8810b
commit d128dbec4c
14 changed files with 22 additions and 42 deletions
+8 -8
View File
@@ -231,24 +231,24 @@ onMounted(async () => {
<SettingsItem v-if="!profile.source || !config.external2FA">
<FormGroup>
<label>{{ $t('profile.twoFactorAuth.totpTitle') }}</label>
<div v-if="profile.totpEnabled">{{ $t('profile.twoFactorAuth.totpEnabled') }} <i class="fa-solid fa-check text-success"></i></div>
<div v-else>{{ $t('profile.twoFactorAuth.disabled') }}</div>
<div v-if="profile.totpEnabled">{{ $t('profile.twoFactorAuth.totpEnabled') }}</i></div>
<div v-else>{{ $t('profile.notSet') }}</div>
</FormGroup>
<div style="display: flex; align-items: center">
<Button tool plain v-if="profile.totpEnabled" @click="onTwoFADisable('totp')">{{ $t('profile.disable2FAAction') }}</Button>
<Button tool plain v-else @click="onOpenTwoFASetupDialog('totp')">{{ $t('profile.enable2FAAction') }}</Button>
<Button tool plain v-if="profile.totpEnabled" @click="onTwoFADisable('totp')">{{ $t('main.action.disable') }}</Button>
<Button tool plain v-else @click="onOpenTwoFASetupDialog('totp')">{{ $t('main.action.setup') }}</Button>
</div>
</SettingsItem>
<SettingsItem v-if="!profile.source || !config.external2FA">
<FormGroup>
<label>{{ $t('profile.twoFactorAuth.passkeyTitle') }}</label>
<div v-if="userPasskey">{{ $t('profile.twoFactorAuth.passkeyEnabled') }} <i class="fa-solid fa-check text-success"></i></div>
<div v-else>{{ $t('profile.twoFactorAuth.disabled') }}</div>
<div v-if="userPasskey">{{ $t('profile.twoFactorAuth.passkeyEnabled') }}</div>
<div v-else>{{ $t('profile.notSet') }}</div>
</FormGroup>
<div style="display: flex; align-items: center">
<Button tool plain v-if="userPasskey" @click="onTwoFADisable('passkey')">{{ $t('profile.disable2FAAction') }}</Button>
<Button tool plain v-else @click="onOpenTwoFASetupDialog('passkey')">{{ $t('profile.enable2FAAction') }}</Button>
<Button tool plain v-if="userPasskey" @click="onTwoFADisable('passkey')">{{ $t('main.action.disable') }}</Button>
<Button tool plain v-else @click="onOpenTwoFASetupDialog('passkey')">{{ $t('main.action.setup') }}</Button>
</div>
</SettingsItem>
</div>