Merge pull request #11100 from rusikv/bug/empty-string-attr
Disabled filtering of attributes with empty string values for attribute table
This commit is contained in:
commit
27c7f12fb1
@ -186,6 +186,7 @@
|
|||||||
<div fxFlex fxLayout="row" style="overflow: hidden; align-items: center;">
|
<div fxFlex fxLayout="row" style="overflow: hidden; align-items: center;">
|
||||||
<span class="ellipsis">{{attribute.value | tbJson}}</span>
|
<span class="ellipsis">{{attribute.value | tbJson}}</span>
|
||||||
<tb-copy-button
|
<tb-copy-button
|
||||||
|
*ngIf="attribute.value !== ''"
|
||||||
class="attribute-copy"
|
class="attribute-copy"
|
||||||
[disabled]="isLoading$ | async"
|
[disabled]="isLoading$ | async"
|
||||||
[copyText]="attribute.value | tbJson"
|
[copyText]="attribute.value | tbJson"
|
||||||
|
|||||||
@ -89,7 +89,7 @@ export class AttributeDatasource implements DataSource<AttributeData> {
|
|||||||
pageLink: PageLink): Observable<PageData<AttributeData>> {
|
pageLink: PageLink): Observable<PageData<AttributeData>> {
|
||||||
return this.getAllAttributes(entityId, attributesScope).pipe(
|
return this.getAllAttributes(entityId, attributesScope).pipe(
|
||||||
map((data) => {
|
map((data) => {
|
||||||
const filteredData = data.filter(attrData => attrData.lastUpdateTs !== 0 && attrData.value !== '');
|
const filteredData = data.filter(attrData => attrData.lastUpdateTs !== 0);
|
||||||
return pageLink.filterData(filteredData);
|
return pageLink.filterData(filteredData);
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user