refactor recipe search

This commit is contained in:
smilerz
2022-01-17 08:26:34 -06:00
parent 6d9a90c6ba
commit 37971acb48
9 changed files with 1474 additions and 1196 deletions

View File

@@ -6,6 +6,8 @@
:clear-on-select="true"
:hide-selected="multiple"
:preserve-search="true"
:internal-search="false"
:limit="options_limit"
:placeholder="lookupPlaceholder"
:label="label"
track-by="id"
@@ -34,6 +36,7 @@ export default {
loading: false,
objects: [],
selected_objects: [],
options_limit: 25,
}
},
props: {
@@ -89,6 +92,7 @@ export default {
page: 1,
pageSize: 10,
query: query,
limit: this.options_limit,
}
this.genericAPI(this.model, this.Actions.LIST, options).then((result) => {
this.objects = this.sticky_options.concat(result.data?.results ?? result.data)