Commit b89def99 authored by Marcelo Rivera's avatar Marcelo Rivera

(fix): add title for activities

1 merge request!604(fix): add title for activities
Pipeline #89753608 running with stages
......@@ -27,10 +27,6 @@
<img *ngSwitchDefault [src]="entity.thumbnail_src" #img />
</div>
<div
class="m-proChannelTile__text"
(click)="tileClicked()"
*ngIf="getTitle() || getText()"
>
<div class="m-proChannelTile__text" (click)="tileClicked()" *ngIf="getTitle()">
<h2 [title]="getTitle()">{{ getTitle() }}</h2>
</div>
......@@ -50,6 +50,12 @@ export class ProTileComponent {
return this.entity.title && this.entity.title.trim() !== ''
? this.entity.title
: this.entity.message;
case 'activity':
return this.entity.title && this.entity.title.trim() !== ''
? this.entity.title
: this.entity.blurb
? this.entity.blurb
: this.entity.message;
default:
return '';
}
......@@ -62,6 +68,8 @@ export class ProTileComponent {
case 'object:image':
case 'object:video':
return this.entity.description;
case 'activity':
return this.entity.blurb ? this.entity.blurb : this.entity.message;
default:
return '';
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment