Link n8n.io node directory to nodeType help

This commit is contained in:
Jan Oberhauser 2019-09-01 22:25:54 +02:00
parent c1777f3c58
commit eb7b516f9d

View file

@ -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;