mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
feat(editor): Add Beta tag to Data Tables (no-changelog) (#19458)
This commit is contained in:
@@ -4,6 +4,7 @@ import { RouterLink } from 'vue-router';
|
|||||||
|
|
||||||
import type { TabOptions } from '../../types';
|
import type { TabOptions } from '../../types';
|
||||||
import N8nIcon from '../N8nIcon';
|
import N8nIcon from '../N8nIcon';
|
||||||
|
import Tag from '../N8nTag/Tag.vue';
|
||||||
import N8nTooltip from '../N8nTooltip';
|
import N8nTooltip from '../N8nTooltip';
|
||||||
|
|
||||||
interface TabsProps {
|
interface TabsProps {
|
||||||
@@ -123,6 +124,7 @@ const scrollRight = () => scroll(50);
|
|||||||
>
|
>
|
||||||
<N8nIcon v-if="option.icon" :icon="option.icon" size="medium" />
|
<N8nIcon v-if="option.icon" :icon="option.icon" size="medium" />
|
||||||
<span v-if="option.label">{{ option.label }}</span>
|
<span v-if="option.label">{{ option.label }}</span>
|
||||||
|
<Tag v-if="option.tag" :text="option.tag" :clickable="false" />
|
||||||
</RouterLink>
|
</RouterLink>
|
||||||
<div
|
<div
|
||||||
v-else
|
v-else
|
||||||
@@ -151,6 +153,7 @@ const scrollRight = () => scroll(50);
|
|||||||
:class="$style.icon"
|
:class="$style.icon"
|
||||||
size="small"
|
size="small"
|
||||||
/>
|
/>
|
||||||
|
<Tag v-if="option.tag" :text="option.tag" :clickable="false" />
|
||||||
</div>
|
</div>
|
||||||
</N8nTooltip>
|
</N8nTooltip>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -13,4 +13,5 @@ export interface TabOptions<Value extends string | number> {
|
|||||||
align?: 'left' | 'right';
|
align?: 'left' | 'right';
|
||||||
to?: RouteLocationRaw;
|
to?: RouteLocationRaw;
|
||||||
notification?: boolean;
|
notification?: boolean;
|
||||||
|
tag?: string;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -68,6 +68,7 @@
|
|||||||
"generic.clickToCopy": "Click to copy",
|
"generic.clickToCopy": "Click to copy",
|
||||||
"generic.copiedToClipboard": "Copied to clipboard",
|
"generic.copiedToClipboard": "Copied to clipboard",
|
||||||
"generic.beta": "beta",
|
"generic.beta": "beta",
|
||||||
|
"generic.betaProper": "beta",
|
||||||
"generic.yes": "Yes",
|
"generic.yes": "Yes",
|
||||||
"generic.no": "No",
|
"generic.no": "No",
|
||||||
"generic.rating": "Rating",
|
"generic.rating": "Rating",
|
||||||
@@ -1401,6 +1402,7 @@
|
|||||||
"nodeCreator.nodeItem.triggerIconTitle": "Trigger Node",
|
"nodeCreator.nodeItem.triggerIconTitle": "Trigger Node",
|
||||||
"nodeCreator.nodeItem.aiIconTitle": "LangChain AI Node",
|
"nodeCreator.nodeItem.aiIconTitle": "LangChain AI Node",
|
||||||
"nodeCreator.nodeItem.deprecated": "Deprecated",
|
"nodeCreator.nodeItem.deprecated": "Deprecated",
|
||||||
|
"nodeCreator.nodeItem.beta": "Beta",
|
||||||
"nodeCreator.preBuiltAgents.title": "Pre-built agents",
|
"nodeCreator.preBuiltAgents.title": "Pre-built agents",
|
||||||
"nodeCreator.preBuiltAgents.description": "Get started faster with ready to go agents",
|
"nodeCreator.preBuiltAgents.description": "Get started faster with ready to go agents",
|
||||||
"nodeCredentials.createNew": "Create new credential",
|
"nodeCredentials.createNew": "Create new credential",
|
||||||
|
|||||||
@@ -131,6 +131,9 @@ const tag = computed(() => {
|
|||||||
if (description.value.toLowerCase().includes('deprecated')) {
|
if (description.value.toLowerCase().includes('deprecated')) {
|
||||||
return { text: i18n.baseText('nodeCreator.nodeItem.deprecated'), type: 'info' };
|
return { text: i18n.baseText('nodeCreator.nodeItem.deprecated'), type: 'info' };
|
||||||
}
|
}
|
||||||
|
if (props.nodeType.name.includes('dataTable')) {
|
||||||
|
return { text: i18n.baseText('nodeCreator.nodeItem.beta'), type: 'info' };
|
||||||
|
}
|
||||||
return undefined;
|
return undefined;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -70,6 +70,7 @@ export const DataStoreModule: FrontendModuleDescription = {
|
|||||||
{
|
{
|
||||||
label: i18n.baseText('dataStore.dataStores'),
|
label: i18n.baseText('dataStore.dataStores'),
|
||||||
value: DATA_STORE_VIEW,
|
value: DATA_STORE_VIEW,
|
||||||
|
tag: i18n.baseText('generic.betaProper'),
|
||||||
to: {
|
to: {
|
||||||
name: DATA_STORE_VIEW,
|
name: DATA_STORE_VIEW,
|
||||||
},
|
},
|
||||||
@@ -79,6 +80,7 @@ export const DataStoreModule: FrontendModuleDescription = {
|
|||||||
{
|
{
|
||||||
label: i18n.baseText('dataStore.dataStores'),
|
label: i18n.baseText('dataStore.dataStores'),
|
||||||
value: PROJECT_DATA_STORES,
|
value: PROJECT_DATA_STORES,
|
||||||
|
tag: i18n.baseText('generic.betaProper'),
|
||||||
dynamicRoute: {
|
dynamicRoute: {
|
||||||
name: PROJECT_DATA_STORES,
|
name: PROJECT_DATA_STORES,
|
||||||
includeProjectId: true,
|
includeProjectId: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user