feat(editor): Add ability to execute a specific node to canvas v2 (no-changelog) (#9986)

This commit is contained in:
Elias Meire
2024-07-10 09:56:39 +02:00
committed by GitHub
parent 9577d9c847
commit 32ddcee782
4 changed files with 50 additions and 6 deletions

View File

@@ -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>