refactor(editor): Update users list on user settings page (#16244)

Co-authored-by: Andreas Fitzek <andreas.fitzek@n8n.io>
This commit is contained in:
Csaba Tuncsik
2025-07-03 13:57:14 +02:00
committed by GitHub
parent 50d80ee620
commit 19ac32659f
27 changed files with 1659 additions and 446 deletions

View File

@@ -19,6 +19,13 @@ import { useClipboard } from '@/composables/useClipboard';
import { useI18n } from '@n8n/i18n';
import { usePageRedirectionHelper } from '@/composables/usePageRedirectionHelper';
const props = defineProps<{
modalName: string;
data: {
afterInvite?: () => Promise<void>;
};
}>();
const NAME_EMAIL_FORMAT_REGEX = /^.* <(.*)>$/;
const usersStore = useUsersStore();
@@ -226,6 +233,8 @@ async function onSubmit() {
} else {
modalBus.emit('close');
}
await props.data.afterInvite?.();
} catch (error) {
showError(error, i18n.baseText('settings.users.usersInvitedError'));
}