From e60466397c341ca248155ebd7768dad9eca6fefc Mon Sep 17 00:00:00 2001 From: Guilhem Date: Tue, 25 Mar 2025 16:42:43 +0000 Subject: [PATCH] Use RunButton for app debug run tab --- .../apps/editor/AppEditorHeader.svelte | 29 ++++++++++++------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/frontend/src/lib/components/apps/editor/AppEditorHeader.svelte b/frontend/src/lib/components/apps/editor/AppEditorHeader.svelte index 660d3afe78..3ddfe673c3 100644 --- a/frontend/src/lib/components/apps/editor/AppEditorHeader.svelte +++ b/frontend/src/lib/components/apps/editor/AppEditorHeader.svelte @@ -94,6 +94,7 @@ import { base } from '$lib/base' import ClipboardPanel from '$lib/components/details/ClipboardPanel.svelte' import LazyModePanel from './contextPanel/LazyModePanel.svelte' + import { RunButton } from '$lib/components/common' async function hash(message) { try { @@ -956,11 +957,21 @@ }, 500) } $: customPath !== undefined && validateCustomPath(customPath) + + let cancelLoading = false + $: if (cancelLoading && !testIsLoading) { + cancelLoading = false + } - + (cancelLoading = detail)} +/> {#if $$slots.unsavedConfirmationModal} {#if job?.['running']} -
- +
+ testJobLoader?.cancelJob()} + {testIsLoading} + {cancelLoading} + />
{/if} {#if job?.args}