Skip to content

Commit d108d80

Browse files
committed
Mark the plan field as required in form
Browser will fortunately validate this and we won't have invalid (undefined) plans sent.
1 parent 4d94bff commit d108d80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/templates/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ <h2>
3131
</div>
3232
<div class="mb-3">
3333
<label for="planInput" class="form-label">Plan <span class="small text-muted">(text or JSON)</span></label>
34-
<textarea name="plan" class="form-control" :class="[draggingPlan ? 'dropzone-over' : '']" id="planInput" rows="8" v-model="planInput" @dragenter="draggingPlan = true" @dragleave="draggingPlan = false" @drop.prevent="handleDrop" placeholder="Paste execution plan or drop a file"></textarea>
34+
<textarea name="plan" class="form-control" :class="[draggingPlan ? 'dropzone-over' : '']" id="planInput" rows="8" v-model="planInput" @dragenter="draggingPlan = true" @dragleave="draggingPlan = false" @drop.prevent="handleDrop" placeholder="Paste execution plan or drop a file" required></textarea>
3535
</div>
3636
<div class="mb-3">
3737
<label for="queryInput" class="form-label">Query <span class="small text-muted">(optional)</span></label>

0 commit comments

Comments
 (0)