From d8e8db39c4b45b5dd9421cf2b5005af3757931cb Mon Sep 17 00:00:00 2001 From: Rupenieks Date: Tue, 25 Aug 2020 14:28:16 +0200 Subject: [PATCH] :zap: Fixed new/open credentials from menu. UTM link adjusted for unknown nodes base. --- .../src/components/CredentialsEdit.vue | 47 ++++++++++--------- 1 file changed, 26 insertions(+), 21 deletions(-) diff --git a/packages/editor-ui/src/components/CredentialsEdit.vue b/packages/editor-ui/src/components/CredentialsEdit.vue index 5699369c54..b77e2eb787 100644 --- a/packages/editor-ui/src/components/CredentialsEdit.vue +++ b/packages/editor-ui/src/components/CredentialsEdit.vue @@ -2,26 +2,27 @@
-
{{title}}
+
{{title}}
@@ -118,14 +119,18 @@ export default mixins( return `${credentialType.documentationUrl}`; } } else { - const credentialType = this.$store.getters.credentialType(this.credentialType); - if (credentialType.documentationUrl === undefined) { - return credentialType.name; + if (this.credentialType) { + const credentialType = this.$store.getters.credentialType(this.credentialType); + + if (credentialType.documentationUrl === undefined) { + return credentialType.name; + } else { + return `${credentialType.documentationUrl}`; + } } else { - return `${credentialType.documentationUrl}`; + return ''; } } - }, node (): INodeUi { return this.$store.getters.activeNode; @@ -368,7 +373,7 @@ export default mixins( text-decoration: none; color: #FF6150; } - +