Commit dc7d1f70 authored by Emiliano Balbuena's avatar Emiliano Balbuena
Browse files

(fix): Feeds service getters

parent 84892778
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
<div class="m-pro--channel-list-modal">
<div class="m-pro--channel-list-modal">
  <div class="m-pro--channel-list-modal--grid">
  <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'">
      <ng-container *ngIf="type === 'images' || type === 'videos' || type === 'blogs'">
        <m-pro--channel-tile *ngIf="entity$ | async as entity"
        <m-pro--channel-tile *ngIf="entity$ | async as entity"
          [entity]="entity"
          [entity]="entity"
@@ -13,8 +13,8 @@
  <infinite-scroll
  <infinite-scroll
    distance="25%"
    distance="25%"
    (load)="loadMore()"
    (load)="loadMore()"
    [moreData]="feedsService.hasMore | async"
    [moreData]="hasMore$ | async"
    [inProgress]="feedsService.inProgress | async"
    [inProgress]="inProgress$ | async"
    [scrollSource]="this.parent"
    [scrollSource]="this.parent"
  ></infinite-scroll>
  ></infinite-scroll>
</div>
</div>
+9 −1
Original line number Original line Diff line number Diff line
@@ -61,10 +61,18 @@ export class ProChannelListModal {
    }
    }
  }
  }


  get entities() {
  get entities$() {
    return this.feedsService.feed;
    return this.feedsService.feed;
  }
  }


  get hasMore$() {
    return this.feedsService.hasMore;
  }

  get inProgress$() {
    return this.feedsService.inProgress;
  }

  loadMore() {
  loadMore() {
    this.feedsService.loadMore();
    this.feedsService.loadMore();
  }
  }