Skip to content
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Frontend
Project overview
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
823
Merge Requests
52
CI / CD
Security & Compliance
Packages
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Frontend
Commits
2dacdbe8
Commit
2dacdbe8
authored
10 minutes ago
by
Guy Thouret
Browse files
Options
Download
(fix) Restore the load() call in boosts admin controller onInit() handler - Fixes
#2266
parent
23781102
goal/boost-campaigns-e24
1 merge request
!387
WIP: Boost Campaigns (&24)
Pipeline
#97266551
running with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
19 deletions
+3
-19
src/app/controllers/admin/boosts/boosts.spec.ts
View file @
2dacdbe8
...
...
@@ -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
();
...
...
This diff is collapsed.
src/app/controllers/admin/boosts/boosts.ts
View file @
2dacdbe8
...
...
@@ -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
,
...
...
This diff is collapsed.
Please
register
or
sign in
to comment