fix(editor): Fix broken types for globally defined components (no-changelog) (#16505)

Co-authored-by: Mutasem Aldmour <mutasem@n8n.io>
This commit is contained in:
Alex Grozav
2025-06-24 14:01:23 +03:00
committed by GitHub
parent 21ff173070
commit 20c63436d2
150 changed files with 1332 additions and 960 deletions

View File

@@ -6,7 +6,7 @@ import Modal from '@/components/Modal.vue';
import { useUsersStore } from '@/stores/users.store';
import { createFormEventBus } from '@n8n/design-system/utils';
import { createEventBus } from '@n8n/utils/event-bus';
import type { IFormInputs, IFormInput } from '@/Interface';
import type { IFormInputs, IFormInput, FormFieldValueUpdate, FormValues } from '@/Interface';
import { useI18n } from '@n8n/i18n';
const config = ref<IFormInputs | null>(null);
@@ -33,17 +33,14 @@ const passwordsMatch = (value: string | number | boolean | null | undefined) =>
return false;
};
const onInput = (e: { name: string; value: string }) => {
if (e.name === 'password') {
const onInput = (e: FormFieldValueUpdate) => {
if (e.name === 'password' && typeof e.value === 'string') {
password.value = e.value;
}
};
const onSubmit = async (values: {
currentPassword: string;
password: string;
mfaCode?: string;
}) => {
const onSubmit = async (data: FormValues) => {
const values = data as { currentPassword: string; password: string; mfaCode?: string };
try {
loading.value = true;
await usersStore.updateCurrentUserPassword({
@@ -143,6 +140,7 @@ onMounted(() => {
>
<template #content>
<n8n-form-inputs
v-if="config"
:inputs="config"
:event-bus="formBus"
:column-view="true"