mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-12 23:54:07 -08:00
⚡ Render string in plus endpoint
This commit is contained in:
parent
704caf09e2
commit
bd9c822a58
|
@ -12,10 +12,12 @@ import {
|
||||||
INodeTypeDescription,
|
INodeTypeDescription,
|
||||||
} from 'n8n-workflow';
|
} from 'n8n-workflow';
|
||||||
import { getStyleTokenValue } from '../helpers';
|
import { getStyleTokenValue } from '../helpers';
|
||||||
|
import { renderText } from './renderText';
|
||||||
|
|
||||||
export const nodeBase = mixins(
|
export const nodeBase = mixins(
|
||||||
deviceSupportHelpers,
|
deviceSupportHelpers,
|
||||||
nodeIndex,
|
nodeIndex,
|
||||||
|
renderText,
|
||||||
).extend({
|
).extend({
|
||||||
mounted () {
|
mounted () {
|
||||||
// Initialize the node
|
// Initialize the node
|
||||||
|
@ -202,6 +204,14 @@ export const nodeBase = mixins(
|
||||||
index: i,
|
index: i,
|
||||||
totalEndpoints: nodeTypeData.outputs.length,
|
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.",
|
"theErrorCauseIsTooLargeToBeDisplayed": "🇩🇪 The error cause is too large to be displayed.",
|
||||||
"time": "🇩🇪 Time"
|
"time": "🇩🇪 Time"
|
||||||
},
|
},
|
||||||
|
"nodesBase": {
|
||||||
|
"clickToAddNodeOrDragToConnect": "🇩🇪 Click to add node<br>or drag to connect"
|
||||||
|
},
|
||||||
"nodeSettings": {
|
"nodeSettings": {
|
||||||
"alwaysOutputData": {
|
"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.",
|
"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.",
|
"theErrorCauseIsTooLargeToBeDisplayed": "The error cause is too large to be displayed.",
|
||||||
"time": "Time"
|
"time": "Time"
|
||||||
},
|
},
|
||||||
|
"nodesBase": {
|
||||||
|
"clickToAddNodeOrDragToConnect": "Click to add node<br>or drag to connect"
|
||||||
|
},
|
||||||
"nodeSettings": {
|
"nodeSettings": {
|
||||||
"alwaysOutputData": {
|
"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.",
|
"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