mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-10-08 14:51:32 +00:00
add click callback and remove icon if is not editable (#4516)
This commit is contained in:
@@ -57,7 +57,7 @@ export class CardViewTextItemComponent implements OnChanges {
|
||||
}
|
||||
|
||||
isClickable(): boolean {
|
||||
return this.property.clickable;
|
||||
return !!this.property.clickable;
|
||||
}
|
||||
|
||||
hasIcon(): boolean {
|
||||
@@ -97,6 +97,10 @@ export class CardViewTextItemComponent implements OnChanges {
|
||||
}
|
||||
|
||||
clicked(): void {
|
||||
this.cardViewUpdateService.clicked(this.property);
|
||||
if (typeof this.property.clickCallBack === 'function') {
|
||||
this.property.clickCallBack();
|
||||
} else {
|
||||
this.cardViewUpdateService.clicked(this.property);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user