* Fixed theaming issue on the filters* Fixed fixed clear action default value. (#4980)

This commit is contained in:
siva kumar
2019-08-08 00:18:06 +05:30
committed by Eugenio Romano
parent e4426e61a0
commit d51e22f9f4
3 changed files with 40 additions and 11 deletions

View File

@@ -91,15 +91,15 @@ export class CardViewDateItemComponent implements OnInit, OnDestroy {
this.onDestroy$.complete();
}
showProperty() {
showProperty(): boolean {
return this.displayEmpty || !this.property.isEmpty();
}
showClearAction() {
return !this.property.isEmpty() && this.displayClearAction;
showClearAction(): boolean {
return this.displayClearAction && (!this.property.isEmpty() || !!this.property.default);
}
isEditable() {
isEditable(): boolean {
return this.editable && this.property.editable;
}
@@ -122,6 +122,7 @@ export class CardViewDateItemComponent implements OnInit, OnDestroy {
this.valueDate = null;
this.cardViewUpdateService.update(this.property, null);
this.property.value = null;
this.property.default = null;
}
}