Skip to content

Commit 5eb4d50

Browse files
committed
Added invalid feedback on continue workflow modal if first task is not selected
1 parent 54d3831 commit 5eb4d50

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lib/components/v2/workflow/RunWorkflowModal.svelte

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@
292292
</span>
293293
</div>
294294
{/if}
295-
<div class="mb-3">
295+
<div class="mb-3 has-validation">
296296
<label for="firstTaskIndex" class="form-label">
297297
{#if mode === 'continue'}
298298
First task (Required)
@@ -307,6 +307,7 @@
307307
disabled={checkingConfiguration}
308308
bind:value={firstTaskIndex}
309309
on:change={resetLastTask}
310+
class:is-invalid={mode === 'continue' && firstTaskIndex === undefined}
310311
>
311312
<option value={undefined}>Select first task</option>
312313
{#each workflow.task_list as wft}
@@ -317,6 +318,7 @@
317318
{/if}
318319
{/each}
319320
</select>
321+
<span class="invalid-feedback"> The first task is required </span>
320322
</div>
321323
<div class="mb-3">
322324
<label for="lastTaskIndex" class="form-label">Last task (Optional)</label>

0 commit comments

Comments
 (0)