mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 04:04:06 -08:00
🐛 Account for potentially missing category name
This commit is contained in:
parent
9819c25ec5
commit
02c915dab1
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<div :class="$style.category">
|
||||
<span :class="$style.name">
|
||||
{{ $baseText(`nodeCreator.categoryNames.${categoryName}`) }}
|
||||
{{ renderCategoryName(categoryName) }}
|
||||
</span>
|
||||
<font-awesome-icon
|
||||
:class="$style.arrow"
|
||||
|
@ -25,6 +25,13 @@ export default mixins(renderText).extend({
|
|||
return camelcase(this.item.category);
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
renderCategoryName(categoryName: string) {
|
||||
const key = `nodeCreator.categoryNames.${categoryName}`;
|
||||
|
||||
return this.$te(key) ? this.$baseText(key) : categoryName;
|
||||
},
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Reference in a new issue