diff --git a/packages/editor-ui/src/components/canvas/elements/nodes/render-types/CanvasNodeDefault.vue b/packages/editor-ui/src/components/canvas/elements/nodes/render-types/CanvasNodeDefault.vue
index ef2fff6eeb..0514965008 100644
--- a/packages/editor-ui/src/components/canvas/elements/nodes/render-types/CanvasNodeDefault.vue
+++ b/packages/editor-ui/src/components/canvas/elements/nodes/render-types/CanvasNodeDefault.vue
@@ -3,14 +3,9 @@ import { computed, ref, useCssModule, watch } from 'vue';
import { useNodeConnections } from '@/composables/useNodeConnections';
import { useI18n } from '@/composables/useI18n';
import { useCanvasNode } from '@/composables/useCanvasNode';
-import {
- LOCAL_STORAGE_CANVAS_TRIGGER_BUTTON_VARIANT,
- NODE_INSERT_SPACER_BETWEEN_INPUT_GROUPS,
-} from '@/constants';
+import { NODE_INSERT_SPACER_BETWEEN_INPUT_GROUPS } from '@/constants';
import type { CanvasNodeDefaultRender } from '@/types';
import { useCanvas } from '@/composables/useCanvas';
-import { useLocalStorage } from '@vueuse/core';
-import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
const $style = useCssModule();
const i18n = useI18n();
@@ -111,8 +106,6 @@ const isStrikethroughVisible = computed(() => {
const showTooltip = ref(false);
-const triggerButtonVariant = useLocalStorage<1 | 2>(LOCAL_STORAGE_CANVAS_TRIGGER_BUTTON_VARIANT, 2);
-
watch(initialized, () => {
if (initialized.value) {
showTooltip.value = true;
@@ -140,9 +133,6 @@ function openContextMenu(event: MouseEvent) {
({{ i18n.baseText('node.disabled') }})
@@ -327,11 +317,4 @@ function openContextMenu(event: MouseEvent) {
bottom: var(--canvas-node--status-icons-offset);
right: var(--canvas-node--status-icons-offset);
}
-
-.triggerIcon {
- display: inline;
- position: static;
- color: var(--color-primary);
- padding: var(--spacing-4xs);
-}
diff --git a/packages/editor-ui/src/components/canvas/elements/nodes/render-types/__snapshots__/CanvasNodeDefault.test.ts.snap b/packages/editor-ui/src/components/canvas/elements/nodes/render-types/__snapshots__/CanvasNodeDefault.test.ts.snap
index e725c9b6c0..71b7c37c5c 100644
--- a/packages/editor-ui/src/components/canvas/elements/nodes/render-types/__snapshots__/CanvasNodeDefault.test.ts.snap
+++ b/packages/editor-ui/src/components/canvas/elements/nodes/render-types/__snapshots__/CanvasNodeDefault.test.ts.snap
@@ -17,8 +17,7 @@ exports[`CanvasNodeDefault > configurable > should render configurable node corr
- Test Node
-
+ Test Node
configuration > should render configurable configur
- Test Node
-
+ Test Node
configuration > should render configuration node co
- Test Node
-
+ Test Node
should render node correctly 1`] = `
- Test Node
-
+ Test Node
trigger > should render trigger node correctly 1`]
- Test Node
-
+ Test Node
();
-const variant = useLocalStorage<1 | 2>(LOCAL_STORAGE_CANVAS_TRIGGER_BUTTON_VARIANT, 2);
-
const style = useCssModule();
const containerClass = computed(() => ({
[cls ?? '']: true,
[style.container]: true,
[style.interactive]: !disabled && !readOnly,
[style.hovered]: !!hovered,
- [style.variant1]: variant.value === 1,
- [style.variant2]: variant.value === 2,
}));
const router = useRouter();
@@ -53,31 +48,13 @@ const testId = computed(() => `execute-workflow-button-${name}`);
-
+
{{ isChatOpen ? i18n.baseText('chat.hide') : i18n.baseText('chat.open') }}
- {{ i18n.baseText('nodeView.runButtonText.executeWorkflow') }}
- `execute-workflow-button-${name}`);
align-items: center;
}
- &.interactive.hovered button {
- pointer-events: all;
- }
-}
-
-.variant1 {
- & button {
- margin-right: var(--spacing-xl);
- display: none;
- }
-
- &.interactive button {
- display: block;
- }
-}
-
-.variant2 {
& button {
margin-right: var(--spacing-s);
opacity: 0;
@@ -145,6 +105,7 @@ const testId = computed(() => `execute-workflow-button-${name}`);
&.interactive.hovered button {
opacity: 1;
translate: 0 0;
+ pointer-events: all;
}
}
diff --git a/packages/editor-ui/src/constants.ts b/packages/editor-ui/src/constants.ts
index 16083100fc..c630d2d837 100644
--- a/packages/editor-ui/src/constants.ts
+++ b/packages/editor-ui/src/constants.ts
@@ -442,7 +442,6 @@ export const LOCAL_STORAGE_EXPERIMENT_OVERRIDES = 'N8N_EXPERIMENT_OVERRIDES';
export const LOCAL_STORAGE_HIDE_GITHUB_STAR_BUTTON = 'N8N_HIDE_HIDE_GITHUB_STAR_BUTTON';
export const LOCAL_STORAGE_NDV_INPUT_PANEL_DISPLAY_MODE = 'N8N_NDV_INPUT_PANEL_DISPLAY_MODE';
export const LOCAL_STORAGE_NDV_OUTPUT_PANEL_DISPLAY_MODE = 'N8N_NDV_OUTPUT_PANEL_DISPLAY_MODE';
-export const LOCAL_STORAGE_CANVAS_TRIGGER_BUTTON_VARIANT = 'Canvas.TriggerButtonVariant';
export const BASE_NODE_SURVEY_URL = 'https://n8n-community.typeform.com/to/BvmzxqYv#nodename=';
export const HIRING_BANNER = `