mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-26 21:19:43 -08:00
⚡ Link n8n.io node directory to nodeType help
This commit is contained in:
parent
c1777f3c58
commit
eb7b516f9d
|
@ -3,10 +3,12 @@
|
||||||
<div class="header-side-menu">
|
<div class="header-side-menu">
|
||||||
<span v-if="node">
|
<span v-if="node">
|
||||||
<display-with-change :key-name="'name'" @valueChanged="valueChanged"></display-with-change>
|
<display-with-change :key-name="'name'" @valueChanged="valueChanged"></display-with-change>
|
||||||
<el-tooltip class="node-info" placement="top" v-if="nodeType.description" effect="light">
|
<a :href="'http://n8n.io/nodes/' + nodeType.name" target="_blank" class="node-info">
|
||||||
<div slot="content" v-html="'<b>Node Description</b><br />' + nodeType.description"></div>
|
<el-tooltip class="clickable" placement="top" effect="light">
|
||||||
|
<div slot="content" v-html="'<strong>Node Description:</strong><br />' + nodeTypeDescription + '<br /><br /><strong>For more information and usage examples click!</strong>'"></div>
|
||||||
<font-awesome-icon icon="question-circle" />
|
<font-awesome-icon icon="question-circle" />
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
|
</a>
|
||||||
</span>
|
</span>
|
||||||
<span v-else>No node active</span>
|
<span v-else>No node active</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -86,6 +88,13 @@ export default mixins(
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
},
|
},
|
||||||
|
nodeTypeDescription (): string {
|
||||||
|
if (this.nodeType.description) {
|
||||||
|
return this.nodeType.description;
|
||||||
|
} else {
|
||||||
|
return 'No description found';
|
||||||
|
}
|
||||||
|
},
|
||||||
headerStyle (): object {
|
headerStyle (): object {
|
||||||
if (!this.node) {
|
if (!this.node) {
|
||||||
return {};
|
return {};
|
||||||
|
@ -508,6 +517,7 @@ export default mixins(
|
||||||
color: #555;
|
color: #555;
|
||||||
|
|
||||||
.node-info {
|
.node-info {
|
||||||
|
color: #555;
|
||||||
display: none;
|
display: none;
|
||||||
padding-left: 0.5em;
|
padding-left: 0.5em;
|
||||||
font-size: 0.8em;
|
font-size: 0.8em;
|
||||||
|
|
Loading…
Reference in a new issue