mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
refactor(editor): Fix warnings caused by missing child (no-changelog) (#17372)
This commit is contained in:
@@ -139,10 +139,9 @@ function onAskAssistantButtonClick() {
|
|||||||
@click="focusPanelStore.toggleFocusPanel"
|
@click="focusPanelStore.toggleFocusPanel"
|
||||||
/>
|
/>
|
||||||
</KeyboardShortcutTooltip>
|
</KeyboardShortcutTooltip>
|
||||||
<n8n-tooltip placement="left">
|
<n8n-tooltip v-if="assistantStore.canShowAssistantButtonsOnCanvas" placement="left">
|
||||||
<template #content> {{ i18n.baseText('aiAssistant.tooltip') }}</template>
|
<template #content> {{ i18n.baseText('aiAssistant.tooltip') }}</template>
|
||||||
<n8n-button
|
<n8n-button
|
||||||
v-if="assistantStore.canShowAssistantButtonsOnCanvas"
|
|
||||||
type="tertiary"
|
type="tertiary"
|
||||||
size="large"
|
size="large"
|
||||||
square
|
square
|
||||||
|
|||||||
@@ -153,9 +153,12 @@ const projectLocation = computed(() => {
|
|||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<div :class="{ [$style.wrapper]: true, [$style['no-border']]: showBadgeBorder }" v-bind="$attrs">
|
<div :class="{ [$style.wrapper]: true, [$style['no-border']]: showBadgeBorder }" v-bind="$attrs">
|
||||||
<N8nTooltip :disabled="!badgeTooltip || numberOfMembersInHomeTeamProject !== 0" placement="top">
|
<N8nTooltip
|
||||||
|
v-if="badgeText"
|
||||||
|
:disabled="!badgeTooltip || numberOfMembersInHomeTeamProject !== 0"
|
||||||
|
placement="top"
|
||||||
|
>
|
||||||
<N8nBadge
|
<N8nBadge
|
||||||
v-if="badgeText"
|
|
||||||
:class="[$style.badge, $style.projectBadge]"
|
:class="[$style.badge, $style.projectBadge]"
|
||||||
theme="tertiary"
|
theme="tertiary"
|
||||||
data-test-id="card-badge"
|
data-test-id="card-badge"
|
||||||
@@ -172,13 +175,12 @@ const projectLocation = computed(() => {
|
|||||||
</template>
|
</template>
|
||||||
</N8nTooltip>
|
</N8nTooltip>
|
||||||
<slot />
|
<slot />
|
||||||
<N8nTooltip :disabled="!badgeTooltip || numberOfMembersInHomeTeamProject === 0" placement="top">
|
<N8nTooltip
|
||||||
<div
|
v-if="numberOfMembersInHomeTeamProject"
|
||||||
v-if="numberOfMembersInHomeTeamProject"
|
:disabled="!badgeTooltip || numberOfMembersInHomeTeamProject === 0"
|
||||||
:class="$style['count-badge']"
|
placement="top"
|
||||||
theme="tertiary"
|
>
|
||||||
bold
|
<div :class="$style['count-badge']" theme="tertiary" bold>
|
||||||
>
|
|
||||||
+{{ numberOfMembersInHomeTeamProject }}
|
+{{ numberOfMembersInHomeTeamProject }}
|
||||||
</div>
|
</div>
|
||||||
<template #content>
|
<template #content>
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ import type { ProjectListItem } from '@/types/projects.types';
|
|||||||
import { useGlobalEntityCreation } from '@/composables/useGlobalEntityCreation';
|
import { useGlobalEntityCreation } from '@/composables/useGlobalEntityCreation';
|
||||||
import { useSettingsStore } from '@/stores/settings.store';
|
import { useSettingsStore } from '@/stores/settings.store';
|
||||||
import { useUsersStore } from '@/stores/users.store';
|
import { useUsersStore } from '@/stores/users.store';
|
||||||
|
import { ElMenu } from 'element-plus';
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
collapsed: boolean;
|
collapsed: boolean;
|
||||||
@@ -128,12 +129,12 @@ onBeforeMount(async () => {
|
|||||||
>
|
>
|
||||||
<span>{{ locale.baseText('projects.menu.title') }}</span>
|
<span>{{ locale.baseText('projects.menu.title') }}</span>
|
||||||
<N8nTooltip
|
<N8nTooltip
|
||||||
|
v-if="projectsStore.canCreateProjects"
|
||||||
placement="right"
|
placement="right"
|
||||||
:disabled="projectsStore.hasPermissionToCreateProjects"
|
:disabled="projectsStore.hasPermissionToCreateProjects"
|
||||||
:content="locale.baseText('projects.create.permissionDenied')"
|
:content="locale.baseText('projects.create.permissionDenied')"
|
||||||
>
|
>
|
||||||
<N8nButton
|
<N8nButton
|
||||||
v-if="projectsStore.canCreateProjects"
|
|
||||||
icon="plus"
|
icon="plus"
|
||||||
text
|
text
|
||||||
data-test-id="project-plus-button"
|
data-test-id="project-plus-button"
|
||||||
@@ -162,12 +163,12 @@ onBeforeMount(async () => {
|
|||||||
/>
|
/>
|
||||||
</ElMenu>
|
</ElMenu>
|
||||||
<N8nTooltip
|
<N8nTooltip
|
||||||
|
v-if="showAddFirstProject"
|
||||||
placement="right"
|
placement="right"
|
||||||
:disabled="projectsStore.hasPermissionToCreateProjects"
|
:disabled="projectsStore.hasPermissionToCreateProjects"
|
||||||
:content="locale.baseText('projects.create.permissionDenied')"
|
:content="locale.baseText('projects.create.permissionDenied')"
|
||||||
>
|
>
|
||||||
<N8nButton
|
<N8nButton
|
||||||
v-if="showAddFirstProject"
|
|
||||||
:class="[
|
:class="[
|
||||||
$style.addFirstProjectBtn,
|
$style.addFirstProjectBtn,
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -515,6 +515,7 @@ watch(
|
|||||||
@mouseleave="onMouseLeaveCell"
|
@mouseleave="onMouseLeaveCell"
|
||||||
>
|
>
|
||||||
<N8nTooltip
|
<N8nTooltip
|
||||||
|
v-if="tableData.metadata.data[index1]"
|
||||||
:content="
|
:content="
|
||||||
i18n.baseText('runData.table.viewSubExecution', {
|
i18n.baseText('runData.table.viewSubExecution', {
|
||||||
interpolate: {
|
interpolate: {
|
||||||
@@ -526,7 +527,6 @@ watch(
|
|||||||
:hide-after="0"
|
:hide-after="0"
|
||||||
>
|
>
|
||||||
<N8nIconButton
|
<N8nIconButton
|
||||||
v-if="tableData.metadata.data[index1]"
|
|
||||||
v-show="showExecutionLink(index1)"
|
v-show="showExecutionLink(index1)"
|
||||||
element="a"
|
element="a"
|
||||||
type="secondary"
|
type="secondary"
|
||||||
@@ -681,6 +681,7 @@ watch(
|
|||||||
@mouseleave="onMouseLeaveCell"
|
@mouseleave="onMouseLeaveCell"
|
||||||
>
|
>
|
||||||
<N8nTooltip
|
<N8nTooltip
|
||||||
|
v-if="tableData.metadata.data[index1]"
|
||||||
:content="
|
:content="
|
||||||
i18n.baseText('runData.table.viewSubExecution', {
|
i18n.baseText('runData.table.viewSubExecution', {
|
||||||
interpolate: {
|
interpolate: {
|
||||||
@@ -692,7 +693,6 @@ watch(
|
|||||||
:hide-after="0"
|
:hide-after="0"
|
||||||
>
|
>
|
||||||
<N8nIconButton
|
<N8nIconButton
|
||||||
v-if="tableData.metadata.data[index1]"
|
|
||||||
v-show="showExecutionLink(index1)"
|
v-show="showExecutionLink(index1)"
|
||||||
element="a"
|
element="a"
|
||||||
type="secondary"
|
type="secondary"
|
||||||
|
|||||||
@@ -118,12 +118,12 @@ function onFocusNode() {
|
|||||||
>
|
>
|
||||||
<div :class="$style.canvasNodeToolbarItems">
|
<div :class="$style.canvasNodeToolbarItems">
|
||||||
<N8nTooltip
|
<N8nTooltip
|
||||||
|
v-if="isExecuteNodeVisible"
|
||||||
placement="top"
|
placement="top"
|
||||||
:disabled="!isDisabled"
|
:disabled="!isDisabled"
|
||||||
:content="i18n.baseText('ndv.execute.deactivated')"
|
:content="i18n.baseText('ndv.execute.deactivated')"
|
||||||
>
|
>
|
||||||
<N8nIconButton
|
<N8nIconButton
|
||||||
v-if="isExecuteNodeVisible"
|
|
||||||
data-test-id="execute-node-button"
|
data-test-id="execute-node-button"
|
||||||
type="tertiary"
|
type="tertiary"
|
||||||
text
|
text
|
||||||
|
|||||||
Reference in New Issue
Block a user