Skip to content

Commit

Permalink
chore: update translations (#4914)
Browse files Browse the repository at this point in the history
Signed-off-by: NaYeong,Kim <[email protected]>
  • Loading branch information
skdud4659 authored Oct 29, 2024
1 parent d39a7a6 commit 2307ca3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ const handleClickReSyncButton = async (type: string) => {
};
watch(() => storeState.mfa, (mfa) => {
if (mfa.mfa_type) {
multiFactorAuthStore.setEnableMfaMapType(mfa.mfa_type, storeState.mfa.state === 'ENABLED');
if (mfa?.mfa_type) {
multiFactorAuthStore.setEnableMfaMapType(mfa.mfa_type, storeState.mfa?.state === 'ENABLED');
}
}, { immediate: true });
watch(() => multiFactorAuthState.modalVisible, (modalVisible) => {
Expand Down Expand Up @@ -105,7 +105,8 @@ watch(() => multiFactorAuthState.modalVisible, (modalVisible) => {
</p-badge>
</div>
<p class="desc">
{{ item.desc }}
<span v-if="item.type === MULTI_FACTOR_AUTH_TYPE.OTP">{{ $t('MY_PAGE.MFA.MS_DESC') }}</span>
<span v-else>{{ $t('MY_PAGE.MFA.EMAIL_DESC') }}</span>
</p>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
import { MULTI_FACTOR_AUTH_TYPE } from '@/schema/identity/user-profile/constant';
import { i18n } from '@/translations';

export const MULTI_FACTOR_AUTH_ITEMS = [
{
type: MULTI_FACTOR_AUTH_TYPE.OTP,
icon: 'ic_microsoft_auth',
title: 'Microsoft Authenticator App',
desc: i18n.t('MY_PAGE.MFA.MS_DESC'),
},
{
type: MULTI_FACTOR_AUTH_TYPE.EMAIL,
icon: 'ic_notification-protocol_envelope',
title: 'Email',
desc: i18n.t('MY_PAGE.MFA.EMAIL_DESC'),
},
];

0 comments on commit 2307ca3

Please sign in to comment.