From 0431f5a4ee4da25313df3c92caa28ac03288a673 Mon Sep 17 00:00:00 2001 From: Ricardo Espinoza Date: Mon, 17 Jun 2024 04:52:38 -0400 Subject: [PATCH] refactor(editor): Migrate `MfaSetupModal.vue` to use script setup (no-changelog) (#9765) --- .../src/components/MfaSetupModal.vue | 285 +++++++++--------- 1 file changed, 144 insertions(+), 141 deletions(-) diff --git a/packages/editor-ui/src/components/MfaSetupModal.vue b/packages/editor-ui/src/components/MfaSetupModal.vue index 0fb0781335..78c9cf7f61 100644 --- a/packages/editor-ui/src/components/MfaSetupModal.vue +++ b/packages/editor-ui/src/components/MfaSetupModal.vue @@ -5,11 +5,11 @@ max-height="640px" :title=" !showRecoveryCodes - ? $locale.baseText('mfa.setup.step1.title') - : $locale.baseText('mfa.setup.step2.title') + ? i18.baseText('mfa.setup.step1.title') + : i18.baseText('mfa.setup.step2.title') " :event-bus="modalBus" - :name="MFA_SETUP_MODAL_KEY" + :name="MFA_SETUP_MODAL_KEY_NAME" :center="true" :loading="loadingQrCode" > @@ -17,21 +17,21 @@
{{ - $locale.baseText('mfa.setup.step1.instruction1.title') + i18.baseText('mfa.setup.step1.instruction1.title') }}
@@ -42,7 +42,7 @@
{{ - $locale.baseText('mfa.setup.step1.instruction2.title') + i18.baseText('mfa.setup.step1.instruction2.title') }}
@@ -50,7 +50,7 @@ size="medium" :bold="false" :class="$style.labelTooltip" - :label="$locale.baseText('mfa.setup.step1.input.label')" + :label="i18.baseText('mfa.setup.step1.input.label')" >
{{ - $locale.baseText('mfa.setup.step2.description') + i18.baseText('mfa.setup.step2.description') }}
@@ -81,11 +81,11 @@ @@ -95,7 +95,7 @@ type="primary" icon="download" float="right" - :label="$locale.baseText('mfa.setup.step2.button.download')" + :label="i18.baseText('mfa.setup.step2.button.download')" data-test-id="mfa-recovery-codes-button" @click="onDownloadClick" /> @@ -108,7 +108,7 @@ -