mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
feat(editor): Add ability to execute a specific node to canvas v2 (no-changelog) (#9986)
This commit is contained in:
@@ -6,6 +6,7 @@ import { useI18n } from '@/composables/useI18n';
|
||||
const emit = defineEmits<{
|
||||
delete: [];
|
||||
toggle: [];
|
||||
run: [];
|
||||
}>();
|
||||
|
||||
const $style = useCssModule();
|
||||
@@ -20,8 +21,9 @@ const workflowRunning = false;
|
||||
// @TODO
|
||||
const nodeDisabledTitle = 'Test';
|
||||
|
||||
// @TODO
|
||||
function executeNode() {}
|
||||
function executeNode() {
|
||||
emit('run');
|
||||
}
|
||||
|
||||
function onToggleNode() {
|
||||
emit('toggle');
|
||||
@@ -81,12 +83,17 @@ function openContextMenu(_e: MouseEvent, _type: string) {}
|
||||
|
||||
<style lang="scss" module>
|
||||
.canvasNodeToolbar {
|
||||
padding-bottom: var(--spacing-3xs);
|
||||
padding-bottom: var(--spacing-2xs);
|
||||
}
|
||||
|
||||
.canvasNodeToolbarItems {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background-color: var(--color-canvas-background);
|
||||
|
||||
:global(.button) {
|
||||
--button-font-color: var(--color-text-light);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user