mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
feat(editor): Add node context menu (#7620)

This commit is contained in:
@@ -10,6 +10,7 @@ import {
|
||||
import { useUIStore } from '@/stores/ui.store';
|
||||
import type { AddedNodesAndConnections, ToggleNodeCreatorOptions } from '@/Interface';
|
||||
import { useActions } from './NodeCreator/composables/useActions';
|
||||
import KeyboardShortcutTooltip from '@/components/KeyboardShortcutTooltip.vue';
|
||||
|
||||
type Props = {
|
||||
nodeViewScale: number;
|
||||
@@ -105,24 +106,31 @@ function nodeTypeSelected(nodeTypes: string[]) {
|
||||
@mouseenter="onCreateMenuHoverIn"
|
||||
>
|
||||
<div :class="$style.nodeCreatorButton" data-test-id="node-creator-plus-button">
|
||||
<n8n-icon-button
|
||||
size="xlarge"
|
||||
icon="plus"
|
||||
type="tertiary"
|
||||
:class="$style.nodeCreatorPlus"
|
||||
@click="openNodeCreator"
|
||||
:title="$locale.baseText('nodeView.addNode')"
|
||||
/>
|
||||
<keyboard-shortcut-tooltip
|
||||
:label="$locale.baseText('nodeView.openNodesPanel')"
|
||||
:shortcut="{ keys: ['Tab'] }"
|
||||
placement="left"
|
||||
>
|
||||
<n8n-icon-button
|
||||
size="xlarge"
|
||||
icon="plus"
|
||||
type="tertiary"
|
||||
:class="$style.nodeCreatorPlus"
|
||||
@click="openNodeCreator"
|
||||
/>
|
||||
</keyboard-shortcut-tooltip>
|
||||
<div
|
||||
:class="[$style.addStickyButton, state.showStickyButton ? $style.visibleButton : '']"
|
||||
@click="addStickyNote"
|
||||
data-test-id="add-sticky-button"
|
||||
>
|
||||
<n8n-icon-button
|
||||
type="tertiary"
|
||||
:icon="['far', 'note-sticky']"
|
||||
:title="$locale.baseText('nodeView.addSticky')"
|
||||
/>
|
||||
<keyboard-shortcut-tooltip
|
||||
:label="$locale.baseText('nodeView.addStickyHint')"
|
||||
:shortcut="{ keys: ['s'], shiftKey: true }"
|
||||
placement="left"
|
||||
>
|
||||
<n8n-icon-button type="tertiary" :icon="['far', 'note-sticky']" />
|
||||
</keyboard-shortcut-tooltip>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user