diff --git a/packages/editor-ui/src/mixins/nodeHelpers.ts b/packages/editor-ui/src/mixins/nodeHelpers.ts index a602fdaa4f..73f2b05386 100644 --- a/packages/editor-ui/src/mixins/nodeHelpers.ts +++ b/packages/editor-ui/src/mixins/nodeHelpers.ts @@ -361,6 +361,7 @@ export const nodeHelpers = defineComponent({ const isInstanceOwner = this.usersStore.isInstanceOwner; const isCredentialUsedInWorkflow = this.workflowsStore.usedCredentials?.[selectedCredentials.id as string]; + if (!isCredentialUsedInWorkflow && !isInstanceOwner) { foundIssues[credentialTypeDescription.name] = [ this.$locale.baseText('nodeIssues.credentials.doNotExist', { diff --git a/packages/editor-ui/src/views/NodeView.vue b/packages/editor-ui/src/views/NodeView.vue index cf34b388a6..497faabc42 100644 --- a/packages/editor-ui/src/views/NodeView.vue +++ b/packages/editor-ui/src/views/NodeView.vue @@ -776,6 +776,24 @@ export default defineComponent({ this.workflowsStore.setWorkflowPinData(data.workflowData.pinData); } + if (data.workflowData.ownedBy) { + this.workflowsEEStore.setWorkflowOwnedBy({ + workflowId: data.workflowData.id, + ownedBy: data.workflowData.ownedBy, + }); + } + + if (data.workflowData.sharedWith) { + this.workflowsEEStore.setWorkflowSharedWith({ + workflowId: data.workflowData.id, + sharedWith: data.workflowData.sharedWith, + }); + } + + if (data.workflowData.usedCredentials) { + this.workflowsStore.setUsedCredentials(data.workflowData.usedCredentials); + } + await this.addNodes( deepCopy(data.workflowData.nodes), deepCopy(data.workflowData.connections),