diff --git a/packages/frontend/editor-ui/src/components/ConfirmPasswordModal/confirm-password.event-bus.ts b/packages/frontend/editor-ui/src/components/ConfirmPasswordModal/confirm-password.event-bus.ts deleted file mode 100644 index 5866028ee3d..00000000000 --- a/packages/frontend/editor-ui/src/components/ConfirmPasswordModal/confirm-password.event-bus.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { createEventBus } from '@n8n/utils/event-bus'; - -export interface ConfirmPasswordClosedEventPayload { - currentPassword: string; -} - -export interface ConfirmPasswordModalEvents { - close: ConfirmPasswordClosedEventPayload | undefined; -} - -export const confirmPasswordEventBus = createEventBus(); diff --git a/packages/frontend/editor-ui/src/components/Modals.vue b/packages/frontend/editor-ui/src/components/Modals.vue index 11c0f6d4ff5..a868202f30a 100644 --- a/packages/frontend/editor-ui/src/components/Modals.vue +++ b/packages/frontend/editor-ui/src/components/Modals.vue @@ -55,8 +55,8 @@ import AboutModal from '@/components/AboutModal.vue'; import ActivationModal from '@/components/ActivationModal.vue'; import ApiKeyCreateOrEditModal from '@/components/ApiKeyCreateOrEditModal.vue'; import NewAssistantSessionModal from '@/features/assistant/components/Chat/NewAssistantSessionModal.vue'; -import ChangePasswordModal from '@/components/ChangePasswordModal.vue'; -import ConfirmPasswordModal from '@/components/ConfirmPasswordModal/ConfirmPasswordModal.vue'; +import ChangePasswordModal from '@/features/auth/components/ChangePasswordModal.vue'; +import ConfirmPasswordModal from '@/features/auth/components/ConfirmPasswordModal.vue'; import ChatEmbedModal from '@/components/ChatEmbedModal.vue'; import CommunityPackageInstallModal from '@/components/CommunityPackageInstallModal.vue'; import CommunityPackageManageConfirmModal from '@/components/CommunityPackageManageConfirmModal.vue'; @@ -74,7 +74,7 @@ import FromAiParametersModal from '@/components/FromAiParametersModal.vue'; import ImportCurlModal from '@/components/ImportCurlModal.vue'; import ImportWorkflowUrlModal from '@/components/ImportWorkflowUrlModal.vue'; import InviteUsersModal from '@/components/InviteUsersModal.vue'; -import MfaSetupModal from '@/components/MfaSetupModal.vue'; +import MfaSetupModal from '@/features/auth/components/MfaSetupModal.vue'; import ModalRoot from '@/components/ModalRoot.vue'; import NpsSurvey from '@/components/NpsSurvey.vue'; import PersonalizationModal from '@/components/PersonalizationModal.vue'; @@ -95,7 +95,7 @@ import WorkflowSettings from '@/components/WorkflowSettings.vue'; import WorkflowShareModal from '@/components/WorkflowShareModal.ee.vue'; import WorkflowDiffModal from '@/features/workflow-diff/WorkflowDiffModal.vue'; import type { EventBus } from '@n8n/utils/event-bus'; -import PromptMfaCodeModal from './PromptMfaCodeModal/PromptMfaCodeModal.vue'; +import PromptMfaCodeModal from '@/features/auth/components/PromptMfaCodeModal.vue'; import DynamicModalLoader from './DynamicModalLoader.vue'; import NodeRecommendationModalV2 from '@/experiments/templateRecoV2/components/NodeRecommendationModal.vue'; import NodeRecommendationModalV3 from '@/experiments/personalizedTemplatesV3/components/NodeRecommendationModal.vue'; diff --git a/packages/frontend/editor-ui/src/event-bus/index.ts b/packages/frontend/editor-ui/src/event-bus/index.ts index b094684a942..bf933015db1 100644 --- a/packages/frontend/editor-ui/src/event-bus/index.ts +++ b/packages/frontend/editor-ui/src/event-bus/index.ts @@ -4,5 +4,4 @@ export * from './global-link-actions'; export * from './html-editor'; export * from './import-curl'; export * from './node-view'; -export * from './mfa'; export * from './ndv'; diff --git a/packages/frontend/editor-ui/src/event-bus/mfa.ts b/packages/frontend/editor-ui/src/features/auth/auth.eventBus.ts similarity index 67% rename from packages/frontend/editor-ui/src/event-bus/mfa.ts rename to packages/frontend/editor-ui/src/features/auth/auth.eventBus.ts index eb012eafbd0..a3bd2796079 100644 --- a/packages/frontend/editor-ui/src/event-bus/mfa.ts +++ b/packages/frontend/editor-ui/src/features/auth/auth.eventBus.ts @@ -1,5 +1,15 @@ import { createEventBus } from '@n8n/utils/event-bus'; +export interface ConfirmPasswordClosedEventPayload { + currentPassword: string; +} + +export interface ConfirmPasswordModalEvents { + close: ConfirmPasswordClosedEventPayload | undefined; +} + +export const confirmPasswordEventBus = createEventBus(); + export const mfaEventBus = createEventBus(); export interface MfaModalClosedEventPayload { diff --git a/packages/frontend/editor-ui/src/components/ChangePasswordModal.test.ts b/packages/frontend/editor-ui/src/features/auth/components/ChangePasswordModal.test.ts similarity index 87% rename from packages/frontend/editor-ui/src/components/ChangePasswordModal.test.ts rename to packages/frontend/editor-ui/src/features/auth/components/ChangePasswordModal.test.ts index 7248774c81e..04a5e3dd26a 100644 --- a/packages/frontend/editor-ui/src/components/ChangePasswordModal.test.ts +++ b/packages/frontend/editor-ui/src/features/auth/components/ChangePasswordModal.test.ts @@ -1,5 +1,5 @@ import { createTestingPinia } from '@pinia/testing'; -import ChangePasswordModal from '@/components/ChangePasswordModal.vue'; +import ChangePasswordModal from './ChangePasswordModal.vue'; import type { createPinia } from 'pinia'; import { createComponentRenderer } from '@/__tests__/render'; diff --git a/packages/frontend/editor-ui/src/components/ChangePasswordModal.vue b/packages/frontend/editor-ui/src/features/auth/components/ChangePasswordModal.vue similarity index 98% rename from packages/frontend/editor-ui/src/components/ChangePasswordModal.vue rename to packages/frontend/editor-ui/src/features/auth/components/ChangePasswordModal.vue index bb46eb8428c..2e6b65138fe 100644 --- a/packages/frontend/editor-ui/src/components/ChangePasswordModal.vue +++ b/packages/frontend/editor-ui/src/features/auth/components/ChangePasswordModal.vue @@ -1,7 +1,7 @@