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

@@ -1,7 +1,8 @@
<script lang="ts" setup>
import { ROLE, type Role } from '@n8n/api-types';
import { EnterpriseEditionFeature, INVITE_USER_MODAL_KEY } from '@/constants';
import type { IUser, IUserListAction, InvitableRoleName } from '@/Interface';
import type { InvitableRoleName, IUser } from '@/Interface';
import type { UserAction } from '@n8n/design-system';
import { useToast } from '@/composables/useToast';
import { useUIStore } from '@/stores/ui.store';
import { useSettingsStore } from '@/stores/settings.store';
@@ -31,6 +32,8 @@ const showUMSetupWarning = computed(() => {
return hasPermission(['defaultUser']);
});
const allUsers = computed(() => usersStore.allUsers);
onMounted(async () => {
documentTitle.set(i18n.baseText('settings.users'));
@@ -39,7 +42,7 @@ onMounted(async () => {
}
});
const usersListActions = computed((): IUserListAction[] => {
const usersListActions = computed((): Array<UserAction<IUser>> => {
return [
{
label: i18n.baseText('settings.users.actions.copyInviteLink'),
@@ -284,12 +287,12 @@ async function onRoleChange(user: IUser, newRoleName: UpdateGlobalRolePayload['n
<!-- If there's more than 1 user it means the account quota was more than 1 in the past. So we need to allow instance owner to be able to delete users and transfer workflows.
-->
<div
v-if="usersStore.usersLimitNotReached || usersStore.allUsers.length > 1"
v-if="usersStore.usersLimitNotReached || allUsers.length > 1"
:class="$style.usersContainer"
>
<n8n-users-list
:actions="usersListActions"
:users="usersStore.allUsers"
:users="allUsers"
:current-user-id="usersStore.currentUserId"
:is-saml-login-enabled="ssoStore.isSamlLoginEnabled"
@action="onUsersListAction"