[ADF-1698] Task Info Drawer should be localizable (#2495)

* Card component should provide the localization

* Fix unit test
This commit is contained in:
Maurizio Vitale
2017-10-18 19:21:18 +01:00
committed by Denys Vuika
parent 0bdd66e158
commit d5cd38b7ee
12 changed files with 276 additions and 48 deletions

View File

@@ -48,4 +48,8 @@ export abstract class CardViewBaseItemModel {
this.editable = !!obj.editable;
this.clickable = !!obj.clickable;
}
isEmpty(): boolean {
return this.value === undefined || this.value === null || this.value === '';
}
}

View File

@@ -39,6 +39,7 @@ export class CardViewTextItemModel extends CardViewBaseItemModel implements Card
}
get displayValue() {
return this.value || this.default;
return this.value;
}
}