From fd4be758c086cc9a1fcf7fa3a8b4217d3bb4a576 Mon Sep 17 00:00:00 2001 From: "CITE\\amentis" Date: Thu, 29 Aug 2024 17:26:43 +0300 Subject: [PATCH] reference listing fix type display and filter --- .../listing/filters/reference-listing-filters.component.html | 4 ++-- .../admin/reference/listing/reference-listing.component.ts | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/frontend/src/app/ui/admin/reference/listing/filters/reference-listing-filters.component.html b/frontend/src/app/ui/admin/reference/listing/filters/reference-listing-filters.component.html index ce6b28177..3666a32a0 100644 --- a/frontend/src/app/ui/admin/reference/listing/filters/reference-listing-filters.component.html +++ b/frontend/src/app/ui/admin/reference/listing/filters/reference-listing-filters.component.html @@ -34,8 +34,8 @@
{{'REFERENCE-LISTING.FILTER.TYPE' | translate}} - - + +
diff --git a/frontend/src/app/ui/admin/reference/listing/reference-listing.component.ts b/frontend/src/app/ui/admin/reference/listing/reference-listing.component.ts index ed8d20bbe..4792a9cff 100644 --- a/frontend/src/app/ui/admin/reference/listing/reference-listing.component.ts +++ b/frontend/src/app/ui/admin/reference/listing/reference-listing.component.ts @@ -44,7 +44,8 @@ export class ReferenceListingComponent extends BaseListingComponent(x => x.label), nameof(x => x.source), nameof(x => x.sourceType), - nameof(x => x.type), + nameof(x => x.type.id), + nameof(x => x.type.name), nameof(x => x.updatedAt), nameof(x => x.createdAt), nameof(x => x.hash), @@ -121,7 +122,7 @@ export class ReferenceListingComponent extends BaseListingComponent(ReferenceSourceTypePipe) }, { - prop: nameof(x => x.type), + prop: nameof(x => x.type.name), sortable: true, languageName: 'REFERENCE-LISTING.FIELDS.TYPE', valueFunction: (item: Reference) => (item?.type?.name)