add units to search fields

This commit is contained in:
Chris Scoggins
2022-01-31 14:41:18 -06:00
parent 5b3a0a6e29
commit f45e09a5a5
4 changed files with 27 additions and 2 deletions

View File

@ -161,7 +161,7 @@
:flat="true"
:auto-load-root-options="false"
searchNested
:placeholder="$t('Ingredients')"
:placeholder="$t('Foods')"
:normalizer="normalizer"
@input="refreshData(false)"
style="flex-grow: 1; flex-shrink: 1; flex-basis: 0"

View File

@ -117,6 +117,7 @@ export default {
limit: this.limit,
}
this.genericAPI(this.model, this.Actions.LIST, options).then((result) => {
console.log(result)
this.objects = this.sticky_options.concat(result.data?.results ?? result.data)
if (this.nothingSelected && this.objects.length > 0) {
this.objects.forEach((item) => {