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
350
Merge Requests
60
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
2c6a2abb
Commit
2c6a2abb
authored
15 hours ago
by
Emiliano Balbuena
Browse files
Options
Download
(feat): Modal pager
parent
4e7eac54
epic/modal-pager
1 merge request
!716
WIP: Modal pager
Pipeline
#107953681
passed with stages
in 49 minutes and 2 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
src/app/common/services/horizontal-feed.service.ts
View file @
2c6a2abb
...
...
@@ -21,18 +21,25 @@ export class HorizontalFeedService {
switch
(
context
)
{
case
'
container
'
:
const
endpoint
=
`api/v2/feeds/container/
${
entity
.
owner_guid
}
/all`
;
const
endpoint
=
`api/v2/feeds/container/
${
entity
.
container_guid
||
entity
.
owner_guid
}
/all`
;
const
params
=
{
sync
:
1
,
as_activities
:
1
,
force_public
:
1
,
limit
:
1
,
//from_timestamp: entity.time_created,
};
return
{
prev
:
void
0
,
next
:
await
this
.
fetch
(
endpoint
,
params
),
prev
:
await
this
.
fetch
(
endpoint
,
{
...
params
,
reverse_sort
:
1
,
from_timestamp
:
entity
.
time_created
*
1000
+
1
,
}),
next
:
await
this
.
fetch
(
endpoint
,
{
...
params
,
from_timestamp
:
entity
.
time_created
*
1000
-
1
,
}),
};
default
:
...
...
@@ -55,6 +62,9 @@ export class HorizontalFeedService {
return
feedSyncEntity
.
entity
;
}
return
this
.
entities
.
single
(
feedSyncEntity
.
urn
).
toPromise
();
return
this
.
entities
.
setCastToActivities
(
true
)
.
single
(
feedSyncEntity
.
urn
)
.
toPromise
();
}
}
This diff is collapsed.
Please
register
or
sign in
to comment