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
836
Issues
836
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
574e8ad7d7b7f6088d2686564576195928ee6dff...c80b3f12a9763df758aa0adee4700cc8ff911934
Source
c80b3f12a9763df758aa0adee4700cc8ff911934
Select Git revision
...
Target
574e8ad7d7b7f6088d2686564576195928ee6dff
Select Git revision
Compare
Commits (2)
Merge branch 'fix/filter-issue-in-pro' into 'master'
· 712dc555
Mark Harding
authored
1 hour ago
Pro Feeds not working Closes
#2107
See merge request
!594
712dc555
(chore): put purchase of pro behind feature flag
· c80b3f12
Mark Harding
authored
21 minutes ago
c80b3f12
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
51 additions
and
24 deletions
+51
-24
src/app/modules/pro/channel/list/list.component.ts
src/app/modules/pro/channel/list/list.component.ts
+18
-8
src/app/modules/pro/subscription/subscription.component.html
src/app/modules/pro/subscription/subscription.component.html
+15
-8
src/app/modules/upgrades/upgrade-options.component.html
src/app/modules/upgrades/upgrade-options.component.html
+18
-8
No files found.
src/app/modules/pro/channel/list/list.component.ts
View file @
c80b3f12
...
...
@@ -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.
src/app/modules/pro/subscription/subscription.component.html
View file @
c80b3f12
...
...
@@ -41,14 +41,21 @@
</div>
<div>
<button
class=
"mf-button mf-button--alt"
[disabled]=
"inProgress || criticalError"
(click)=
"enable()"
i18n
>
Upgrade to Pro
</button>
<ng-container
*mIfFeature=
"'purchase-pro'; else comingSoon"
>
<button
class=
"mf-button mf-button--alt"
[disabled]=
"inProgress || criticalError"
(click)=
"enable()"
i18n
>
Upgrade to Pro
</button>
</ng-container>
<ng-template
#comingSoon
>
<button
class=
"mf-button mf-button--alt"
i18n
>
Coming soon
</button>
</ng-template>
</div>
</div>
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/upgrades/upgrade-options.component.html
View file @
c80b3f12
...
...
@@ -127,14 +127,24 @@
</div>
<div
class=
"m-upgradesUpgradeOptionsPlan__row"
>
<a
class=
"mf-button m-upgradesUpgradeOptionsPlan__action"
routerLink=
"/pro"
[queryParams]=
"intervalCurrencyQueryParams"
*ngIf=
"!session.getLoggedInUser()?.pro"
>
Upgrade to Pro
</a>
<ng-container
*mIfFeature=
"'purchase-pro'; else comingSoon"
>
<a
class=
"mf-button m-upgradesUpgradeOptionsPlan__action"
routerLink=
"/pro"
[queryParams]=
"intervalCurrencyQueryParams"
*ngIf=
"!session.getLoggedInUser()?.pro"
>
Upgrade to Pro
</a>
</ng-container>
<ng-template
#comingSoon
>
<a
class=
"mf-button m-upgradesUpgradeOptionsPlan__action"
routerLink=
"/pro"
>
Coming soon
</a>
</ng-template>
</div>
<div
...
...
This diff is collapsed.
Click to expand it.