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:
Alex Grozav
2022-11-17 16:22:46 +02:00
committed by GitHub
parent 7483e147fc
commit dea67ca6b7
5 changed files with 27 additions and 11 deletions

View File

@@ -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>};