Commit dd17b1a8 authored by Emiliano Balbuena's avatar Emiliano Balbuena

(fix): Feed fixes

1 merge request!459WIP: (feat): Minds Pro
Pipeline #74853934 running with stages
......@@ -9,7 +9,7 @@ import { OverlayModalComponent } from '../../../../common/components/overlay-mod
selector: 'm-pro--channel-list-modal',
changeDetection: ChangeDetectionStrategy.OnPush,
templateUrl: 'list-modal.component.html',
providers: [OverlayModalService],
providers: [FeedsService, OverlayModalService],
})
export class ProChannelListModal {
......
......@@ -12,6 +12,7 @@ import { ProChannelListModal } from '../list-modal/list-modal.component';
selector: 'm-pro--channel-list',
templateUrl: 'list.component.html',
changeDetection: ChangeDetectionStrategy.OnPush,
providers: [FeedsService],
})
export class ProChannelListComponent implements OnInit, OnDestroy {
......@@ -83,9 +84,9 @@ export class ProChannelListComponent implements OnInit, OnDestroy {
this.entities.push(await entity.pipe(first()).toPromise());
}
if (this.entities.length >= 9) {
if (this.entities.length >= 10) {
this.displaySeeMoreTile = true;
this.entities = this.entities.slice(0, 8);
this.entities = this.entities.slice(0, 9);
}
this.detectChanges();
......@@ -114,7 +115,7 @@ export class ProChannelListComponent implements OnInit, OnDestroy {
try {
this.feedsService
.setEndpoint(`api/v2/feeds/channel/${this.channelService.currentChannel.guid}/${this.type}/${this.algorithm}${search}`)
.setLimit(9)
.setLimit(10)
.fetch();
} catch (e) {
......
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