From 7ace34fbc85ea8cc88ab7082950ad6a0af83fc13 Mon Sep 17 00:00:00 2001 From: Allan Lasser Date: Fri, 15 Nov 2024 18:07:45 -0500 Subject: [PATCH] Load processing on dispatch success --- src/lib/components/layouts/AddOnLayout.svelte | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib/components/layouts/AddOnLayout.svelte b/src/lib/components/layouts/AddOnLayout.svelte index 5a6f58967..70b5986b7 100644 --- a/src/lib/components/layouts/AddOnLayout.svelte +++ b/src/lib/components/layouts/AddOnLayout.svelte @@ -26,6 +26,7 @@ import Tab from "../common/Tab.svelte"; import { schedules } from "../addons/ScheduledEvent.svelte"; + import { getProcessLoader } from "../processing/ProcessContext.svelte"; export let addon: AddOnListItem; export let event: Event | null = null; @@ -64,6 +65,8 @@ } } + const load = getProcessLoader(); + // go to the correct tab after submitting function onDispatch({ detail }) { if (detail.type === "event") { @@ -72,6 +75,8 @@ if (detail.type === "run") { currentTab = "history"; + // load processing data + load?.(); } }