fix(editor): Fix credential sharing issues handler when no matching id or name (#4879)

* fix: fix credential sharing issues handler when no matching id or name

* feat: Show erroring credential name as placeholder when available

* feat: Add (unavailable) descriptor for unavailable credentials
This commit is contained in:
Alex Grozav
2022-12-12 14:46:10 +02:00
committed by GitHub
parent 74b831b9b7
commit 1cce8eaf16
3 changed files with 18 additions and 3 deletions

View File

@@ -343,7 +343,8 @@ export const nodeHelpers = mixins(
}
if (nameMatches.length === 0) {
if (!this.settingsStore.isEnterpriseFeatureEnabled(EnterpriseEditionFeature.WorkflowSharing)) {
const isCredentialUsedInWorkflow = this.workflowsStore.usedCredentials?.[selectedCredentials.id as string];
if (!isCredentialUsedInWorkflow) {
foundIssues[credentialTypeDescription.name] = [this.$locale.baseText('nodeIssues.credentials.doNotExist', { interpolate: { name: selectedCredentials.name, type: credentialDisplayName } }), this.$locale.baseText('nodeIssues.credentials.doNotExist.hint')];
}
}