mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
✨ Render header strings
This commit is contained in:
@@ -95,9 +95,26 @@ export default mixins(
|
||||
|
||||
return null;
|
||||
},
|
||||
nodeTypeName(): string {
|
||||
if (this.nodeType) {
|
||||
const shortNodeType = this.nodeType.name.replace('n8n-nodes-base.', '');
|
||||
|
||||
return this.$headerText({
|
||||
key: `headers.${shortNodeType}.displayName`,
|
||||
fallback: this.nodeType.name,
|
||||
});
|
||||
}
|
||||
|
||||
return '';
|
||||
},
|
||||
nodeTypeDescription (): string {
|
||||
if (this.nodeType && this.nodeType.description) {
|
||||
return this.nodeType.description;
|
||||
const shortNodeType = this.nodeType.name.replace('n8n-nodes-base.', '');
|
||||
|
||||
return this.$headerText({
|
||||
key: `headers.${shortNodeType}.description`,
|
||||
fallback: this.nodeType.description,
|
||||
});
|
||||
} else {
|
||||
return this.$baseText('nodeSettings.noDescriptionFound');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user