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
838
Issues
838
List
Boards
Labels
Service Desk
Milestones
Merge Requests
45
Merge Requests
45
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
Compare Revisions
68a83066b5263dd7928cb5044b8992cab7ae8329...453a078abbcb68f109aacc4deb8c5ab3ef7b8dae
Source
453a078abbcb68f109aacc4deb8c5ab3ef7b8dae
Select Git revision
...
Target
68a83066b5263dd7928cb5044b8992cab7ae8329
Select Git revision
Compare
Commits (2)
Pro Feeds not working
· 9b97502d
Marcelo Rivera
authored
6 minutes ago
9b97502d
Merge branch 'fix/filter-issue-in-pro' into 'master'
· 453a078a
Mark Harding
authored
6 minutes ago
Pro Feeds not working Closes
#2107
See merge request
!594
453a078a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
8 deletions
+18
-8
src/app/modules/pro/channel/list/list.component.ts
src/app/modules/pro/channel/list/list.component.ts
+18
-8
No files found.
src/app/modules/pro/channel/list/list.component.ts
View file @
453a078a
...
...
@@ -7,7 +7,7 @@ import {
OnInit
,
}
from
'
@angular/core
'
;
import
{
ActivatedRoute
,
Router
}
from
'
@angular/router
'
;
import
{
Subscription
}
from
'
rxjs
'
;
import
{
BehaviorSubject
,
Subscription
}
from
'
rxjs
'
;
import
{
FeedsService
}
from
'
../../../../common/services/feeds.service
'
;
import
{
NavItems
,
...
...
@@ -17,6 +17,7 @@ import {
import
{
OverlayModalService
}
from
'
../../../../services/ux/overlay-modal
'
;
import
{
MindsTitle
}
from
'
../../../../services/ux/title
'
;
import
{
filter
}
from
'
rxjs/operators
'
;
import
{
map
}
from
'
rxjs/operators
'
;
@
Component
({
selector
:
'
m-pro--channel-list
'
,
...
...
@@ -41,6 +42,8 @@ export class ProChannelListComponent implements OnInit, OnDestroy {
selectedHashtag
:
string
=
'
all
'
;
entities$
;
constructor
(
public
feedsService
:
FeedsService
,
protected
modalService
:
OverlayModalService
,
...
...
@@ -50,7 +53,20 @@ export class ProChannelListComponent implements OnInit, OnDestroy {
protected
router
:
Router
,
protected
cd
:
ChangeDetectorRef
,
protected
injector
:
Injector
)
{}
)
{
this
.
entities$
=
this
.
feedsService
.
feed
.
pipe
(
map
((
elements
:
BehaviorSubject
<
any
>
[])
=>
{
return
elements
.
filter
((
element
:
BehaviorSubject
<
any
>
)
=>
{
const
entity
=
element
.
getValue
();
return
(
!!
entity
.
thumbnail_src
||
!!
entity
.
custom_data
||
(
entity
.
thumbnails
&&
entity
.
thumbnails
.
length
>
0
)
);
});
})
);
}
ngOnInit
()
{
this
.
params$
=
this
.
route
.
params
.
subscribe
(
params
=>
{
...
...
@@ -166,12 +182,6 @@ export class ProChannelListComponent implements OnInit, OnDestroy {
this
.
channelService
.
pushMenuNavItems
(
navItems
,
true
);
}
get
entities$
()
{
return
this
.
feedsService
.
feed
.
pipe
(
filter
((
entity
:
any
)
=>
!!
entity
.
thumbnail_src
)
);
}
get
hasMore$
()
{
return
this
.
feedsService
.
hasMore
;
}
...
...
This diff is collapsed.
Click to expand it.