mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 20:24:05 -08:00
⚡ Add data-node-name to node item (#1329)
* Add data-node-name to node item * Restore n8n-nodes-base prefix for consistency
This commit is contained in:
parent
46fb9c09ab
commit
6759e2e72a
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<div class="node-item clickable" :class="{active: active}" @click="nodeTypeSelected(nodeType)">
|
||||
<div class="node-item clickable" :class="{active: active}" :data-node-name="nodeName" @click="nodeTypeSelected(nodeType)">
|
||||
<NodeIcon class="node-icon" :nodeType="nodeType" :style="nodeIconStyle" />
|
||||
<div class="name">
|
||||
{{nodeType.displayName}}
|
||||
|
@ -33,6 +33,9 @@ export default Vue.extend({
|
|||
color: this.nodeType.defaults.color,
|
||||
};
|
||||
},
|
||||
nodeName (): string {
|
||||
return this.nodeType.name;
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
nodeTypeSelected (nodeType: INodeTypeDescription) {
|
||||
|
|
Loading…
Reference in a new issue