This commit is contained in:
2020-04-08 01:00:04 +00:00
parent 96bf5da782
commit 6b4eed47f6

View File

@@ -36,13 +36,14 @@
</v-col> </v-col>
<v-col cols="12"> <v-col cols="12">
<p v-if="!results.length">No results</p> <p v-if="!results.length">{{ $ay.t("NoResults") }}</p>
<v-card v-if="results.length" max-width="900px"> <v-card v-if="results.length" max-width="900px">
<v-list> <v-list>
<v-subheader v-if="maxResultsReturned"> <v-subheader v-if="maxResultsReturned">
<span>({{ $ay.t("TooManyResults") }})</span> <span>({{ $ay.t("TooManyResults") }})</span>
</v-subheader> </v-subheader>
_.groupBy(collection, [iteratee=_.identity]) _.groupBy(collection, [iteratee=_.identity])
maybe add an icon property in code but only for each new item in group?
<v-list-item-group v-model="item" color="primary"> <v-list-item-group v-model="item" color="primary">
<v-list-item v-for="(item, i) in results" :key="i"> <v-list-item v-for="(item, i) in results" :key="i">
<v-list-item-icon> <v-list-item-icon>
@@ -262,9 +263,9 @@ function initForm(vm) {
// //
function fetchTranslatedText(vm) { function fetchTranslatedText(vm) {
return window.$gz.translation.fetch([ return window.$gz.translation.fetch([
//todo: needs all object types "TooManyResults",
"Object", "NoResults",
"TooManyResults" "Object"
]); ]);
} }