[ADF-4696] Display name on metadata card (#4870)

* [ADF-4696] Display names on content metadata

* [ADF-4696] unit test
This commit is contained in:
Suzana Dirla
2019-06-24 19:39:06 +03:00
committed by Eugenio Romano
parent be234f227f
commit 317ae3db68
2 changed files with 16 additions and 1 deletions

View File

@@ -30,7 +30,7 @@ export abstract class CardViewBaseItemModel {
constructor(cardViewItemProperties: CardViewItemProperties) {
this.label = cardViewItemProperties.label || '';
this.value = cardViewItemProperties.value;
this.value = cardViewItemProperties.value && cardViewItemProperties.value.displayName || cardViewItemProperties.value;
this.key = cardViewItemProperties.key;
this.default = cardViewItemProperties.default;
this.editable = !!cardViewItemProperties.editable;