From cefde1da23646719342bab527d2c4b23c0e1f9c3 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 8 Apr 2020 14:22:06 +0000 Subject: [PATCH] --- ayanova/src/api/gzutil.js | 14 ++++++++++++++ ayanova/src/views/home-search.vue | 20 +++++++++++++++----- 2 files changed, 29 insertions(+), 5 deletions(-) diff --git a/ayanova/src/api/gzutil.js b/ayanova/src/api/gzutil.js index 86c3fded..0620e1a6 100644 --- a/ayanova/src/api/gzutil.js +++ b/ayanova/src/api/gzutil.js @@ -147,6 +147,20 @@ export default { } return ret; + }, /////////////////////////////// + // ICON FOR CORE OBJECT TYPES + //(used for search results) + // + //CoreBizObject add here + iconForCoreType: function(aytype) { + switch (aytype) { + case window.$gz.type.User: + return "fa-user"; + case window.$gz.type.Widget: + return "fa-vial"; + default: + return null; + } } //new functions above here diff --git a/ayanova/src/views/home-search.vue b/ayanova/src/views/home-search.vue index 1887a944..c6572390 100644 --- a/ayanova/src/views/home-search.vue +++ b/ayanova/src/views/home-search.vue @@ -13,7 +13,7 @@ :label="$ay.t('Search')" ref="searchPhrase" @change="getDataFromApi()" - hint="text, *xt, *ex*, te*" + hint="text, *xt, te*" > @@ -42,12 +42,10 @@ ({{ $ay.t("TooManyResults") }}) - _.groupBy(collection, [iteratee=_.identity]) - maybe add an icon property in code but only for each new item in group? - fa-splotch + {{ item.icon }}