Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
881
Issues
881
List
Boards
Labels
Service Desk
Milestones
Merge Requests
50
Merge Requests
50
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
Packages
Packages
List
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Frontend
Commits
0e4667c0
Commit
0e4667c0
authored
31 minutes ago
by
Mark Harding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(chore): refresh boost feed after each batch
parent
3d286cd9
master
No related merge requests found
Pipeline
#79822815
failed with stages
in 8 minutes and 36 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
boost-rotator.component.ts
...modules/newsfeed/boost-rotator/boost-rotator.component.ts
+2
-2
No files found.
src/app/modules/newsfeed/boost-rotator/boost-rotator.component.ts
View file @
0e4667c0
...
...
@@ -122,6 +122,7 @@ export class NewsfeedBoostRotatorComponent {
load
()
{
try
{
this
.
feedsService
.
clear
();
// Fresh each time
this
.
feedsService
.
setEndpoint
(
'
api/v2/boost/feed
'
)
.
setParams
({
...
...
@@ -262,8 +263,7 @@ export class NewsfeedBoostRotatorComponent {
if
(
this
.
currentPosition
+
1
>
this
.
boosts
.
length
-
1
)
{
//this.currentPosition = 0;
try
{
this
.
feedsService
.
fetch
();
this
.
feedsService
.
loadMore
();
this
.
load
();
this
.
currentPosition
++
;
}
catch
(
e
)
{
this
.
currentPosition
=
0
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment