Skip to content

Commit

Permalink
Load processing on dispatch success
Browse files Browse the repository at this point in the history
  • Loading branch information
allanlasser committed Nov 15, 2024
1 parent 003d81e commit 7ace34f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lib/components/layouts/AddOnLayout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -64,6 +65,8 @@
}
}
const load = getProcessLoader();
// go to the correct tab after submitting
function onDispatch({ detail }) {
if (detail.type === "event") {
Expand All @@ -72,6 +75,8 @@
if (detail.type === "run") {
currentTab = "history";
// load processing data
load?.();
}
}
</script>
Expand Down

0 comments on commit 7ace34f

Please sign in to comment.