mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-02 04:39:54 -05:00
enable/disable treeselect
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
:hide-selected="multiple"
|
||||
:preserve-search="true"
|
||||
:internal-search="false"
|
||||
:limit="options_limit"
|
||||
:limit="limit"
|
||||
:placeholder="lookupPlaceholder"
|
||||
:label="label"
|
||||
track-by="id"
|
||||
@@ -36,7 +36,6 @@ export default {
|
||||
loading: false,
|
||||
objects: [],
|
||||
selected_objects: [],
|
||||
options_limit: 25,
|
||||
}
|
||||
},
|
||||
props: {
|
||||
@@ -90,9 +89,9 @@ export default {
|
||||
search: function (query) {
|
||||
let options = {
|
||||
page: 1,
|
||||
pageSize: 10,
|
||||
pageSize: this.limit,
|
||||
query: query,
|
||||
limit: this.options_limit,
|
||||
limit: this.limit,
|
||||
}
|
||||
this.genericAPI(this.model, this.Actions.LIST, options).then((result) => {
|
||||
this.objects = this.sticky_options.concat(result.data?.results ?? result.data)
|
||||
|
||||
Reference in New Issue
Block a user