This commit is contained in:
2021-09-06 15:25:18 +00:00
parent a1db11d886
commit 790c9edc99
2 changed files with 8 additions and 12 deletions

View File

@@ -864,3 +864,4 @@ BUILD 129 CHANGES OF NOTE
- Fixed issue with translation key rather than translated text showing in search results
- Search results page fixed issue with 'aworkorderitemloan' showing instead of translated text for Work order item loan
- Search fixed issue with wo/quote/pm subitem results returned showing header summary instead of sub item summary when click in (i) information icon for a summary
- Search results page removed untranslated subheader due to switching to list of types not translated

View File

@@ -41,11 +41,9 @@
<template v-for="item in items">
<!-- KEY MUST BE UNIQUE INSIDE v-for OR LIST ITEM GOES SNAKEY -->
<v-subheader :key="'s' + item.index" v-if="item.subheader"
><v-icon large class="mr-2">{{ item.icon }}</v-icon
><span class="text-h6">{{
item.subheader
}}</span></v-subheader
>
><v-icon large class="mr-2">{{ item.icon }}</v-icon>
<!-- <span class="text-h6">{{item.subheader}}</span> removed subheader due to change of lists used which is not translated so just showing icon instead -->
</v-subheader>
<v-list-item link :key="item.index">
<v-list-item-content
@@ -266,12 +264,8 @@ export default {
);
if (item.type != lastType) {
//change of type, set subheader props
//de-lodash
// let tsub = window.$gz. _.find(vm.selectLists.objectTypes, [
// "id",
// item.type
// ]);
//Note: was going to show the type name translated but coded it to get the name from the list which doesn't have the translated names due to a change
//so opted to just show the icon instead due to TTM concerns
let tsub = vm.selectLists.objectTypes.find(
z => z.id == item.type
);
@@ -281,6 +275,7 @@ export default {
} else {
item.subheader = "TYPE " + item.type;
}
// item.subheader = item.type;
item.icon = window.$gz.util.iconForType(item.type);
lastType = item.type;
}
@@ -366,7 +361,7 @@ async function fetchTranslatedText(vm) {
//
//
async function populateSelectionLists(vm) {
let res = await window.$gz.api.get("enum-list/list/ayatype");
let res = await window.$gz.api.get("enum-list/list/alltranslated");
if (res.error) {
vm.formState.serverError = res.error;
window.$gz.form.setErrorBoxErrors(vm);