mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(editor): Fix credential errors in executions view for workflow sharee (#6875)
This commit is contained in:
@@ -361,6 +361,7 @@ export const nodeHelpers = defineComponent({
|
|||||||
const isInstanceOwner = this.usersStore.isInstanceOwner;
|
const isInstanceOwner = this.usersStore.isInstanceOwner;
|
||||||
const isCredentialUsedInWorkflow =
|
const isCredentialUsedInWorkflow =
|
||||||
this.workflowsStore.usedCredentials?.[selectedCredentials.id as string];
|
this.workflowsStore.usedCredentials?.[selectedCredentials.id as string];
|
||||||
|
|
||||||
if (!isCredentialUsedInWorkflow && !isInstanceOwner) {
|
if (!isCredentialUsedInWorkflow && !isInstanceOwner) {
|
||||||
foundIssues[credentialTypeDescription.name] = [
|
foundIssues[credentialTypeDescription.name] = [
|
||||||
this.$locale.baseText('nodeIssues.credentials.doNotExist', {
|
this.$locale.baseText('nodeIssues.credentials.doNotExist', {
|
||||||
|
|||||||
@@ -776,6 +776,24 @@ export default defineComponent({
|
|||||||
this.workflowsStore.setWorkflowPinData(data.workflowData.pinData);
|
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(
|
await this.addNodes(
|
||||||
deepCopy(data.workflowData.nodes),
|
deepCopy(data.workflowData.nodes),
|
||||||
deepCopy(data.workflowData.connections),
|
deepCopy(data.workflowData.connections),
|
||||||
|
|||||||
Reference in New Issue
Block a user