Skip to content

Commit 5c91ea5

Browse files
author
Matthew Harris
committed
Moved toggle
1 parent b1dc367 commit 5c91ea5

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/Azure.AISearch.WebApp/Pages/Index.cshtml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@
3030
}
3131
});
3232
33+
// Trigger logic for the default selected scenario
34+
if (selectedScenario.value) {
35+
searchRequest.value = selectedScenario.value.searchRequest; // Trigger the effect of selecting the default
36+
}
37+
3338
// Save settings when changed.
3439
watch(settings, (newSettings) => {
3540
localStorage.setItem('settings', JSON.stringify(newSettings));
@@ -208,14 +213,14 @@
208213

209214
<form method="post" class="mb-3">
210215

211-
<div class="card mb-3" v-show="settings.showOptions">
216+
<div class="card mb-3" >
212217
<div class="card-header">
213218
<div class="form-check form-check-inline form-switch">
214219
<input class="form-check-input" type="checkbox" role="switch" v-model="settings.showOptions">
215220
<label class="form-check-label">Show Options</label>
216221
</div>
217222
</div>
218-
<div class="card-body">
223+
<div class="card-body" v-show="settings.showOptions">
219224
<div class="mb-2">
220225
<label class="form-label">Predefined scenario</label>
221226
<div class="form-group">

0 commit comments

Comments
 (0)