diff --git a/frontend/src/lib/components/runs/RunnableBatchModal.svelte b/frontend/src/lib/components/runs/RunnableBatchModal.svelte new file mode 100644 index 0000000000..85551c9063 --- /dev/null +++ b/frontend/src/lib/components/runs/RunnableBatchModal.svelte @@ -0,0 +1,110 @@ + + + { + modalIsOpen = false + // dispatch('confirmed') + }} + on:canceled + title="Runnable batch" + class="w-full max-w-full xl:max-w-7xl" +> + + console.log(innerJobs)}>console.log(jobsWithArgs) + + + + Runnable Jobs + + {#each innerJobs as job} + + + {job.id} + {job.script_path} + {job.tag} + + {/each} + + + + + + Job Configurations + { + innerJobs = innerJobs.map((job) => ({ + ...job, + args: { ...job.priorArgs } + })) + }} + color="light" + size="sm">Reset job args to prior execution + + {#each innerJobs as job} + {#if job.isSelected} + + {job.id} Config + + {#if job.args !== undefined} + {#each Object.keys(job.args) as key} + + {key} + + + {/each} + {/if} + + + {/if} + {/each} + + + diff --git a/frontend/src/lib/components/runs/RunsTable.svelte b/frontend/src/lib/components/runs/RunsTable.svelte index 340eaeba9b..fc62d3a57c 100644 --- a/frontend/src/lib/components/runs/RunsTable.svelte +++ b/frontend/src/lib/components/runs/RunsTable.svelte @@ -9,6 +9,7 @@ import { workspaceStore } from '$lib/stores' import { twMerge } from 'tailwind-merge' import { isJobCancelable } from '$lib/utils' + import RunnableBatchModal from './RunnableBatchModal.svelte' //import InfiniteLoading from 'svelte-infinite-loading' export let jobs: Job[] | undefined = undefined @@ -189,6 +190,8 @@ computeHeight()} /> + +