initial TreeSearch component

This commit is contained in:
smilerz
2022-01-17 13:10:56 -06:00
committed by Chris Scoggins
parent ab68a60480
commit cdb7c7854d
2 changed files with 59 additions and 13 deletions

View File

@ -147,6 +147,18 @@
</b-input-group>
</div>
</div>
<div class="row">
<div class="col-12">
<AdvancedTreeSelect
:initial_selection1="settings.search_keywords"
:options="facets.Keywords"
facet="keyword"
:placeholder="$t('Keywords')"
@change="settings.search_keywords = $event"
@load-children="loadChildren($event)"
/>
</div>
</div>
<!-- foods filter -->
<div class="row">
@ -285,6 +297,7 @@ import GenericMultiselect from "@/components/GenericMultiselect"
import { Treeselect, LOAD_CHILDREN_OPTIONS } from "@riophae/vue-treeselect" //TODO: delete
import "@riophae/vue-treeselect/dist/vue-treeselect.css" //TODO: delete
import RecipeSwitcher from "@/components/Buttons/RecipeSwitcher"
import AdvancedTreeSelect from "@/apps/RecipeSearchView/AdvancedTreeSelect"
Vue.use(VueCookies)
Vue.use(BootstrapVue)
@ -512,7 +525,6 @@ export default {
this.search.pagination_page = page
this.refreshData(false)
},
normalizer(node) {
let count = node?.count ? " (" + node.count + ")" : ""
return {