mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
fix: Fix foreign credentials being shown for new nodes (#4622)
* feat: Extract usedCredentials into separate store entry and fix foreign credentials being shown for new nodes * chore: adjust spacing
This commit is contained in:
@@ -904,6 +904,13 @@ export interface INodeMetadata {
|
||||
parametersLastUpdatedAt?: number;
|
||||
}
|
||||
|
||||
export interface IUsedCredential {
|
||||
id: string;
|
||||
name: string;
|
||||
credentialType: string;
|
||||
currentUserHasAccess: boolean;
|
||||
}
|
||||
|
||||
export interface WorkflowsState {
|
||||
activeExecutions: IExecutionsCurrentSummaryExtended[];
|
||||
activeWorkflows: string[];
|
||||
@@ -915,6 +922,7 @@ export interface WorkflowsState {
|
||||
finishedExecutionsCount: number;
|
||||
nodeMetadata: NodeMetadataMap;
|
||||
subWorkflowExecutionError: Error | null;
|
||||
usedCredentials: Record<string, IUsedCredential>;
|
||||
workflow: IWorkflowDb;
|
||||
workflowExecutionData: IExecutionResponse | null;
|
||||
workflowExecutionPairedItemMappings: {[itemId: string]: Set<string>};
|
||||
|
||||
Reference in New Issue
Block a user