mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 11:22:15 +00:00
🐛 Account for potentially missing category name
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div :class="$style.category">
|
<div :class="$style.category">
|
||||||
<span :class="$style.name">
|
<span :class="$style.name">
|
||||||
{{ $baseText(`nodeCreator.categoryNames.${categoryName}`) }}
|
{{ renderCategoryName(categoryName) }}
|
||||||
</span>
|
</span>
|
||||||
<font-awesome-icon
|
<font-awesome-icon
|
||||||
:class="$style.arrow"
|
:class="$style.arrow"
|
||||||
@@ -25,6 +25,13 @@ export default mixins(renderText).extend({
|
|||||||
return camelcase(this.item.category);
|
return camelcase(this.item.category);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
methods: {
|
||||||
|
renderCategoryName(categoryName: string) {
|
||||||
|
const key = `nodeCreator.categoryNames.${categoryName}`;
|
||||||
|
|
||||||
|
return this.$te(key) ? this.$baseText(key) : categoryName;
|
||||||
|
},
|
||||||
|
},
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user