diff --git a/src/background/index.js b/src/background/index.js index 6ea4c2cb4..37609a3c7 100644 --- a/src/background/index.js +++ b/src/background/index.js @@ -191,6 +191,14 @@ message.on('recording:stop', async () => { console.error(error); } }); +message.on('workflow:resume', ({ id, nextBlock }) => { + if (!id) return; + workflowState.resume(id, nextBlock); +}); +message.on('workflow:breakpoint', (id) => { + if (!id) return; + workflowState.update(id, { status: 'breakpoint' }); +}); automa('background', message); diff --git a/src/components/block/BlockBase.vue b/src/components/block/BlockBase.vue index 0d636cb2b..010f08194 100644 --- a/src/components/block/BlockBase.vue +++ b/src/components/block/BlockBase.vue @@ -65,6 +65,15 @@ + @@ -95,6 +104,7 @@ const props = defineProps({ defineEmits(['delete', 'edit', 'update', 'settings']); const isCopied = ref(false); +const workflow = inject('workflow', null); const workflowUtils = inject('workflow-utils', null); function insertToClipboard() { diff --git a/src/components/newtab/workflow/editor/EditorDebugging.vue b/src/components/newtab/workflow/editor/EditorDebugging.vue new file mode 100644 index 000000000..85866e493 --- /dev/null +++ b/src/components/newtab/workflow/editor/EditorDebugging.vue @@ -0,0 +1,169 @@ + + + diff --git a/src/components/newtab/workflow/editor/EditorLocalActions.vue b/src/components/newtab/workflow/editor/EditorLocalActions.vue index 4f6e629c1..19dd57c79 100644 --- a/src/components/newtab/workflow/editor/EditorLocalActions.vue +++ b/src/components/newtab/workflow/editor/EditorLocalActions.vue @@ -122,18 +122,35 @@ - +