Minor optimizations

This commit is contained in:
Iván Ovejero
2021-11-20 18:28:05 +01:00
parent d379d7ecf3
commit b4399a1c63
19 changed files with 144 additions and 99 deletions

View File

@@ -97,7 +97,7 @@ export default mixins(
},
nodeTypeName(): string {
if (this.nodeType) {
const shortNodeType = this.nodeType.name.replace('n8n-nodes-base.', '');
const shortNodeType = this.$shortNodeType(this.nodeType.name);
return this.$headerText({
key: `headers.${shortNodeType}.displayName`,
@@ -109,7 +109,7 @@ export default mixins(
},
nodeTypeDescription (): string {
if (this.nodeType && this.nodeType.description) {
const shortNodeType = this.nodeType.name.replace('n8n-nodes-base.', '');
const shortNodeType = this.$shortNodeType(this.nodeType.name);
return this.$headerText({
key: `headers.${shortNodeType}.description`,