File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
src/lib/components/v2/workflow Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change 4040
4141 $: selectedDataset = datasets .find ((d ) => d .id === selectedDatasetId);
4242
43+ $: runBtnDisabled =
44+ (mode === ' restart' && ! replaceExistingDataset && newDatasetName === selectedDataset? .name ) ||
45+ (mode === ' continue' && firstTaskIndex === undefined );
46+
4347 /**
4448 * @param {'run'|'restart'|'continue'} action
4549 */
268272 < / div>
269273 {/ if }
270274 < div class = " mb-3" >
271- <label for =" firstTaskIndex" class =" form-label" >First task (Optional)</label >
275+ < label for = " firstTaskIndex" class = " form-label" >
276+ {#if mode === ' continue' }
277+ First task (Required)
278+ {: else }
279+ First task (Optional)
280+ {/ if }
281+ < / label>
272282 < select
273283 name= " firstTaskIndex"
274284 id= " firstTaskIndex"
395405 < button
396406 class = " btn btn-primary"
397407 on: click= {() => (checkingConfiguration = true )}
398- disabled ={mode === ' restart' &&
399- ! replaceExistingDataset &&
400- newDatasetName === selectedDataset ?.name }
408+ disabled= {runBtnDisabled}
401409 >
402410 Run
403411 < / button>
You can’t perform that action at this time.
0 commit comments