Skip to content
Snippets Groups Projects
Commit 49c6e42f authored by Marcelo Rivera's avatar Marcelo Rivera Committed by Mark Harding
Browse files

(fix): add title for activities

parent b72d7e64
No related branches found
No related tags found
No related merge requests found
......@@ -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 '';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment