Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Commits on Source (6)
(chore): further reduce rotator to 3
· 1458fa3f
Mark Harding
authored
Sep 01, 2019
1458fa3f
(chore): pass through version of frontend to XHR requests
· 3d286cd9
Mark Harding
authored
Sep 02, 2019
3d286cd9
(chore): refresh boost feed after each batch
· 0e4667c0
Mark Harding
authored
Sep 02, 2019
0e4667c0
(fix): cs fixes
· 0aec94c9
Mark Harding
authored
Sep 02, 2019
0aec94c9
Merge remote-tracking branch 'origin/master' into feat/closed-channels-602
· b17d9dad
Brian Hatchet
authored
Sep 03, 2019
b17d9dad
Merge branch 'feat/closed-channels-602' of gitlab.com:minds/front into feat/closed-channels-602
· 1c38865e
Brian Hatchet
authored
Sep 03, 2019
1c38865e
Hide whitespace changes
Inline
Side-by-side
src/app/common/api/client.service.ts
View file @
1c38865e
import
{
Cookie
}
from
'
../../services/cookie
'
;
import
{
HttpClient
,
HttpHeaders
}
from
'
@angular/common/http
'
;
import
{
environment
}
from
'
../../../environments/environment
'
;
/**
* API Class
...
...
@@ -68,6 +69,7 @@ export class MindsHttpClient {
const
headers
=
new
HttpHeaders
({
'
X-XSRF-TOKEN
'
:
XSRF_TOKEN
,
'
X-VERSION
'
:
environment
.
version
,
});
return
Object
.
assign
(
options
,
{
...
...
src/app/modules/newsfeed/boost-rotator/boost-rotator.component.ts
View file @
1c38865e
...
...
@@ -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
;
...
...
src/app/modules/newsfeed/feeds/subscribed.component.html
View file @
1c38865e
...
...
@@ -24,7 +24,7 @@
></minds-activity>
<m-newsfeed--boost-rotator
interval=
"
4
"
interval=
"
3
"
*ngIf=
"showBoostRotator"
></m-newsfeed--boost-rotator>
...
...
src/app/services/api/client.ts
View file @
1c38865e
import
{
Cookie
}
from
'
../cookie
'
;
import
{
HttpClient
,
HttpHeaders
}
from
'
@angular/common/http
'
;
import
{
environment
}
from
'
../../../environments/environment
'
;
/**
* API Class
...
...
@@ -175,6 +176,7 @@ export class Client {
const
headers
=
new
HttpHeaders
({
'
X-XSRF-TOKEN
'
:
XSRF_TOKEN
,
'
X-VERSION
'
:
environment
.
version
,
});
return
Object
.
assign
(
options
,
{
...
...