Commit 2dacdbe8 authored by Guy Thouret's avatar Guy Thouret

(fix) Restore the load() call in boosts admin controller onInit() handler - Fixes #2266

1 merge request!387WIP: Boost Campaigns (&24)
Pipeline #97266551 running with stages
......@@ -221,16 +221,6 @@ describe('AdminBoosts', () => {
newsfeed_count: 4,
content_count: 2,
};
clientMock.response[`api/v1/admin/boosts/analytics/newsfeed`] = {
status: 'success',
reviewQueue: 4,
backlog: 2,
priorityBacklog: 2,
impressions: 5000,
avgApprovalTime: 1889603500,
avgImpressions: 2500,
timestamp: 1505745685,
};
comp.type = 'newsfeed';
......@@ -260,14 +250,6 @@ describe('AdminBoosts', () => {
expect(content.nativeElement.textContent).toContain('Content');
});
it('should have a statistics section', () => {
fixture.detectChanges();
expect(
fixture.debugElement.query(By.css('.m-admin-boosts-statistics'))
).not.toBeNull();
});
it('should have a boosts container', () => {
fixture.detectChanges();
......
......@@ -60,6 +60,8 @@ export class AdminBoosts {
this.inProgress = false;
this.moreData = true;
this.offset = '';
this.load();
});
}
......@@ -71,7 +73,7 @@ export class AdminBoosts {
if (this.inProgress) return;
this.inProgress = true;
return this.client
this.client
.get('api/v1/admin/boosts/' + this.type, {
limit: 24,
offset: this.offset,
......
Please register or to comment