Commit 13d8184e authored by Ben Hayward's avatar Ben Hayward

Fixed entities without thumbnails being displayed

1 merge request!540[Sprint/ModestMonkey](fix): boost console feed
Pipeline #81323018 running with stages
<div class="m-boost-console-booster--cta">
<span i18n="@@BOOST__CONSOLE__BOOSTER__CTA"
>Boosting guarantees more views on your posts and contents.</span
>Boosting guarantees more views on your posts and content.</span
>
<!--<button class="mdl-button mdl-button&#45;&#45;raised mdl-color-text&#45;&#45;white" (click)="toggle()" i18n="verb|@@M__ACTION__BOOST">Boost</button>-->
</div>
......@@ -10,14 +10,11 @@
<ng-container *ngIf="type == 'newsfeed' || type == 'offers'">
<ng-container>
<div class="m-boost-console--booster--posts-list">
<ng-container
*ngFor="let entity of feed$ | async"
>
<ng-container *ngFor="let entity of feed$ | async">
<minds-card
[object]="entity | async"
class="m-border"
hostClass="mdl-card"
*ngIf="(entity | async)?.entity"
></minds-card>
</ng-container>
</div>
......@@ -50,10 +47,8 @@
<div
class="mdl-cell mdl-cell--6-col"
*ngFor="let entity of feed$ | async"
>
<ng-container
*ngIf="(entity | async)?.entity"
>
>
<ng-container *ngIf="(entity | async)?.thumbnail_src">
<minds-card
[object]="entity | async"
hostClass="mdl-shadow--2dp"
......
......@@ -109,8 +109,8 @@ describe('BoostConsoleBooster', () => {
it('should not have a poster if the user has posted content', () => {
comp.feed$ = of([
BehaviorSubject.create({ id: 1, entity: true}),
BehaviorSubject.create({ id: 2, entity: true}),
BehaviorSubject.create({ id: 1, entity: true }),
BehaviorSubject.create({ id: 2, entity: true }),
]);
fixture.detectChanges();
......
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