Skip to content

Commit

Permalink
adding toggle for observed targets
Browse files Browse the repository at this point in the history
  • Loading branch information
havok2063 committed Aug 2, 2024
1 parent 3ccc57e commit 62ab746
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/views/Search.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,19 @@
</v-col>
</v-row>

<v-row>
<v-col cols="12">
<v-switch
v-tippy="{content:'Toggle between only observed targets or all targets', placement: 'left', maxWidth:200}"
v-model="formData.observed"
color="success"
:label="`Targets: ${formData.observed ? 'Observed' : 'All'}`"
hide-details
inset
></v-switch>
</v-col>
</v-row>

<v-row>
<v-col cols="4">
<v-btn rounded="lg" color='primary' @click="submit_form" size="large" :disabled="!valid" :append-icon="valid ? 'mdi-check-circle' : 'mdi-close-circle'">Search
Expand Down Expand Up @@ -137,7 +150,8 @@ let initFormData = {
units: 'degree',
release: store.release,
carton: '',
program: ''
program: '',
observed: true
}
// create dynamic bindings to form fields
let formData = ref({ ...initFormData })
Expand Down

0 comments on commit 62ab746

Please sign in to comment.