Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Commit

Permalink
Merge pull request #253 from marius-patrascu/fix-search-description
Browse files Browse the repository at this point in the history
updated search description field source
  • Loading branch information
sarbull authored Oct 18, 2021
2 parents 71d9b22 + fcf3225 commit e1de726
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions new/asset-catalog/egeria-asset-search.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,16 @@ class EgeriaAssetSearch extends PolymerElement {
}
}

_itemDescription(item) {
if (item.properties.description && item.properties.description != null) {
return item.properties.description;
} else if (item.properties.summary && item.properties.summary != null) {
return item.properties.summary;
} else {
return '';
}
}

btoa(string) {
return ENV['PRODUCTION'] ? string : window.btoa(string);
}
Expand Down Expand Up @@ -382,10 +392,10 @@ class EgeriaAssetSearch extends PolymerElement {
<vaadin-grid-column width="30%" resizable>
<template class="header">
<div><vaadin-grid-sorter path="properties.summary">Description</vaadin-grid-sorter></div>
<div><vaadin-grid-filter path="properties.summary"></vaadin-grid-filter></div>
<div><vaadin-grid-sorter path="properties.description">Description</vaadin-grid-sorter></div>
<div><vaadin-grid-filter path="properties.description"></vaadin-grid-filter></div>
</template>
<template>[[ item.properties.summary ]]</template>
<template> [[ _itemDescription(item) ]] </template>
</vaadin-grid-column>
</vaadin-grid>
Expand Down

0 comments on commit e1de726

Please sign in to comment.