Skip to content

Commit

Permalink
Merge pull request #1082 from PlanoramaEvents/plan-1006-add-any-to-se…
Browse files Browse the repository at this point in the history
…arch

PLAN-1006 Add any tag and label to sched search
  • Loading branch information
Gailbear authored Jun 22, 2024
2 parents 336b31f + 1183d77 commit 8f456e4
Showing 1 changed file with 22 additions and 8 deletions.
30 changes: 22 additions & 8 deletions app/javascript/schedule/schedule_session_search.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,13 @@
</div>
<div class="col-12">
<b-form-group label="Tag" label-cols="4">
<b-form-select v-model="tag" :options="sessionTagsOptions" unselected-display="Any Tag" size="sm">
<template #first>
<b-form-select-option value="" disabled>-- Please select Tag --</b-form-select-option>
</template>
<b-form-select v-model="tag" :options="sessionTagsDropDownOptions" size="sm">
</b-form-select>
</b-form-group>
</div>
<div class="col-12">
<b-form-group label="Label" label-cols="4">
<b-form-select v-model="label" :options="sessionLabelsOptions" unselected-display="Any Admin Label" size="sm">
<template #first>
<b-form-select-option value="" disabled>-- Please select a Label --</b-form-select-option>
</template>
<b-form-select v-model="label" :options="sessionLabelsDropDownOptions" size="sm">
</b-form-select>
</b-form-group>
</div>
Expand Down Expand Up @@ -92,6 +86,26 @@ export default {
}
}
},
computed: {
sessionTagsDropDownOptions() {
this.sessionTagsOptions.unshift(
{
value: null,
text: "Any Tag"
}
)
return this.sessionTagsOptions
},
sessionLabelsDropDownOptions() {
this.sessionLabelsOptions.unshift(
{
value: null,
text: "Any Label"
}
)
return this.sessionLabelsOptions
}
},
methods: {
fields_to_query() {
let queries = {
Expand Down

0 comments on commit 8f456e4

Please sign in to comment.