mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[ADF-1698] Task Info Drawer should be localizable (#2495)
* Card component should provide the localization * Fix unit test
This commit is contained in:
committed by
Denys Vuika
parent
0bdd66e158
commit
d5cd38b7ee
@@ -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 === '';
|
||||
}
|
||||
}
|
||||
|
@@ -39,6 +39,7 @@ export class CardViewTextItemModel extends CardViewBaseItemModel implements Card
|
||||
}
|
||||
|
||||
get displayValue() {
|
||||
return this.value || this.default;
|
||||
return this.value;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user