Commit dc7d1f70 authored by Emiliano Balbuena's avatar Emiliano Balbuena

(fix): Feeds service getters

1 merge request!459WIP: (feat): Minds Pro
Pipeline #74844758 running with stages
<div class="m-pro--channel-list-modal">
<div class="m-pro--channel-list-modal--grid">
<ng-container *ngFor="let entity$ of (entities | async); let i = index">
<ng-container *ngFor="let entity$ of (entities$ | async); let i = index">
<ng-container *ngIf="type === 'images' || type === 'videos' || type === 'blogs'">
<m-pro--channel-tile *ngIf="entity$ | async as entity"
[entity]="entity"
......@@ -13,8 +13,8 @@
<infinite-scroll
distance="25%"
(load)="loadMore()"
[moreData]="feedsService.hasMore | async"
[inProgress]="feedsService.inProgress | async"
[moreData]="hasMore$ | async"
[inProgress]="inProgress$ | async"
[scrollSource]="this.parent"
></infinite-scroll>
</div>
......
......@@ -61,10 +61,18 @@ export class ProChannelListModal {
}
}
get entities() {
get entities$() {
return this.feedsService.feed;
}
get hasMore$() {
return this.feedsService.hasMore;
}
get inProgress$() {
return this.feedsService.inProgress;
}
loadMore() {
this.feedsService.loadMore();
}
......
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