mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 02:51:14 +00:00
feat(editor): Implement some quick improvements on NDV in canvas experiment (no-changelog) (#16717)
Co-authored-by: Milorad FIlipović <milorad@n8n.io>
This commit is contained in:
@@ -20,6 +20,7 @@ import type {
|
||||
import { useActions } from './NodeCreator/composables/useActions';
|
||||
import KeyboardShortcutTooltip from '@/components/KeyboardShortcutTooltip.vue';
|
||||
import { useI18n } from '@n8n/i18n';
|
||||
import { useExperimentalNdvStore } from '../canvas/experimental/experimentalNdv.store';
|
||||
|
||||
type Props = {
|
||||
nodeViewScale: number;
|
||||
@@ -44,6 +45,7 @@ const uiStore = useUIStore();
|
||||
const focusPanelStore = useFocusPanelStore();
|
||||
const posthogStore = usePostHog();
|
||||
const i18n = useI18n();
|
||||
const experimentalNdvStore = useExperimentalNdvStore();
|
||||
|
||||
const { getAddedNodesAndConnections } = useActions();
|
||||
|
||||
@@ -125,6 +127,20 @@ function nodeTypeSelected(value: NodeTypeSelectedPayload[]) {
|
||||
@click="focusPanelStore.toggleFocusPanel"
|
||||
/>
|
||||
</KeyboardShortcutTooltip>
|
||||
<n8n-icon-button
|
||||
v-if="experimentalNdvStore.isEnabled"
|
||||
type="tertiary"
|
||||
size="large"
|
||||
icon="expand"
|
||||
@click="experimentalNdvStore.expandAllNodes"
|
||||
/>
|
||||
<n8n-icon-button
|
||||
v-if="experimentalNdvStore.isEnabled"
|
||||
type="tertiary"
|
||||
size="large"
|
||||
icon="compress"
|
||||
@click="experimentalNdvStore.collapseAllNodes"
|
||||
/>
|
||||
</div>
|
||||
<Suspense>
|
||||
<LazyNodeCreator
|
||||
|
||||
Reference in New Issue
Block a user