initial TreeSearch component
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user