mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 14:44:05 -08:00
⚡ Render string in plus endpoint
This commit is contained in:
parent
704caf09e2
commit
bd9c822a58
|
@ -12,10 +12,12 @@ import {
|
|||
INodeTypeDescription,
|
||||
} from 'n8n-workflow';
|
||||
import { getStyleTokenValue } from '../helpers';
|
||||
import { renderText } from './renderText';
|
||||
|
||||
export const nodeBase = mixins(
|
||||
deviceSupportHelpers,
|
||||
nodeIndex,
|
||||
renderText,
|
||||
).extend({
|
||||
mounted () {
|
||||
// Initialize the node
|
||||
|
@ -202,6 +204,14 @@ export const nodeBase = mixins(
|
|||
index: i,
|
||||
totalEndpoints: nodeTypeData.outputs.length,
|
||||
};
|
||||
|
||||
const _plusEndpoint = this.instance.getEndpoint(
|
||||
CanvasHelpers.getOutputEndpointUUID(this.nodeIndex, index),
|
||||
);
|
||||
|
||||
const dropHoverMessageDiv = _plusEndpoint.canvas.children[1].children[1];
|
||||
|
||||
dropHoverMessageDiv.innerHTML = this.$baseText('nodesBase.clickToAddNodeOrDragToConnect');
|
||||
}
|
||||
});
|
||||
},
|
||||
|
|
|
@ -471,6 +471,9 @@
|
|||
"theErrorCauseIsTooLargeToBeDisplayed": "🇩🇪 The error cause is too large to be displayed.",
|
||||
"time": "🇩🇪 Time"
|
||||
},
|
||||
"nodesBase": {
|
||||
"clickToAddNodeOrDragToConnect": "🇩🇪 Click to add node<br>or drag to connect"
|
||||
},
|
||||
"nodeSettings": {
|
||||
"alwaysOutputData": {
|
||||
"description": "🇩🇪 If active, the node will return an empty item even if the <br />node returns no data during an initial execution. Be careful setting <br />this on IF-Nodes as it could cause an infinite loop.",
|
||||
|
|
|
@ -455,6 +455,9 @@
|
|||
"theErrorCauseIsTooLargeToBeDisplayed": "The error cause is too large to be displayed.",
|
||||
"time": "Time"
|
||||
},
|
||||
"nodesBase": {
|
||||
"clickToAddNodeOrDragToConnect": "Click to add node<br>or drag to connect"
|
||||
},
|
||||
"nodeSettings": {
|
||||
"alwaysOutputData": {
|
||||
"description": "If active, the node will return an empty item even if the <br />node returns no data during an initial execution. Be careful setting <br />this on IF-Nodes as it could cause an infinite loop.",
|
||||
|
|
Loading…
Reference in a new issue