refactor(editor): Standardize components sections order (no-changelog) (#10540)
This commit is contained in:
@@ -1,39 +1,3 @@
|
||||
<template>
|
||||
<Modal
|
||||
width="460px"
|
||||
height="300px"
|
||||
max-height="640px"
|
||||
:title="i18n.baseText('mfa.prompt.code.modal.title')"
|
||||
:event-bus="promptMfaCodeBus"
|
||||
:name="PROMPT_MFA_CODE_MODAL_KEY"
|
||||
:center="true"
|
||||
>
|
||||
<template #content>
|
||||
<div :class="[$style.formContainer]">
|
||||
<n8n-form-inputs
|
||||
data-test-id="mfa-code-form"
|
||||
:inputs="formFields"
|
||||
:event-bus="formBus"
|
||||
@submit="onSubmit"
|
||||
@ready="onFormReady"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
<template #footer>
|
||||
<div>
|
||||
<n8n-button
|
||||
float="right"
|
||||
:disabled="!readyToSubmit"
|
||||
:label="i18n.baseText('settings.personal.save')"
|
||||
size="large"
|
||||
data-test-id="mfa-save-button"
|
||||
@click="onClickSave"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
</Modal>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref } from 'vue';
|
||||
import Modal from '../Modal.vue';
|
||||
@@ -77,6 +41,42 @@ function onFormReady(isReady: boolean) {
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Modal
|
||||
width="460px"
|
||||
height="300px"
|
||||
max-height="640px"
|
||||
:title="i18n.baseText('mfa.prompt.code.modal.title')"
|
||||
:event-bus="promptMfaCodeBus"
|
||||
:name="PROMPT_MFA_CODE_MODAL_KEY"
|
||||
:center="true"
|
||||
>
|
||||
<template #content>
|
||||
<div :class="[$style.formContainer]">
|
||||
<n8n-form-inputs
|
||||
data-test-id="mfa-code-form"
|
||||
:inputs="formFields"
|
||||
:event-bus="formBus"
|
||||
@submit="onSubmit"
|
||||
@ready="onFormReady"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
<template #footer>
|
||||
<div>
|
||||
<n8n-button
|
||||
float="right"
|
||||
:disabled="!readyToSubmit"
|
||||
:label="i18n.baseText('settings.personal.save')"
|
||||
size="large"
|
||||
data-test-id="mfa-save-button"
|
||||
@click="onClickSave"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
</Modal>
|
||||
</template>
|
||||
|
||||
<style lang="scss" module>
|
||||
.formContainer {
|
||||
padding-bottom: var(--spacing-xl);
|
||||
|
||||
Reference in New Issue
Block a user