mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 20:54:07 -08:00
⚡ Fixed new/open credentials from menu. UTM link adjusted for unknown nodes base.
This commit is contained in:
parent
d5dda2e35a
commit
d8e8db39c4
|
@ -5,7 +5,7 @@
|
|||
<div id="left">{{title}}</div>
|
||||
<div id="right">
|
||||
<div id="docsContainer">
|
||||
<svg id="help-logo" :href="'https://docs.n8n.io/credentials/' + nodeType.displayName" target="_blank" width="18px" height="18px" viewBox="0 0 18 18" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg id="help-logo" target="_blank" width="18px" height="18px" viewBox="0 0 18 18" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>Node Documentation</title>
|
||||
<g id="MVP-Onboard-proposal" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
||||
<g id="Node-modal-(docs-link)" transform="translate(-1127.000000, -836.000000)" fill-rule="nonzero">
|
||||
|
@ -20,7 +20,8 @@
|
|||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
<span id='docLinkText'>Need help? <a id="doc-hyperlink" :href="'https://docs.n8n.io/credentials/' + documentationUrl + '/?utm_source=n8n_app&utm_medium=add_credential_modal-credential_link&utm_campaign=' + nodeType.name" target="_blank">Open credential docs</a></span>
|
||||
<span v-if="nodeType" id='docLinkText'>Need help? <a id="doc-hyperlink" :href="'https://docs.n8n.io/credentials/' + documentationUrl + '/?utm_source=n8n_app&utm_medium=add_credential_modal-credential_link&utm_campaign=' + nodeType.name" target="_blank">Open credential docs</a></span>
|
||||
<span v-if="!nodeType" id='docLinkText'>Need help? <a id="doc-hyperlink" :href="'https://docs.n8n.io/credentials/' + documentationUrl + '/?utm_source=n8n_app&utm_medium=add_credential_modal-credential_link&utm_campaign=unknown-nodes-base.' + documentationUrl" target="_blank">Open credential docs</a></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -118,14 +119,18 @@ export default mixins(
|
|||
return `${credentialType.documentationUrl}`;
|
||||
}
|
||||
} else {
|
||||
if (this.credentialType) {
|
||||
const credentialType = this.$store.getters.credentialType(this.credentialType);
|
||||
|
||||
if (credentialType.documentationUrl === undefined) {
|
||||
return credentialType.name;
|
||||
} else {
|
||||
return `${credentialType.documentationUrl}`;
|
||||
}
|
||||
} else {
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
||||
},
|
||||
node (): INodeUi {
|
||||
return this.$store.getters.activeNode;
|
||||
|
|
Loading…
Reference in a new issue