Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Frontend
Project
Project
Details
Activity
Releases
Dependency List
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
820
Issues
820
List
Boards
Labels
Service Desk
Milestones
Merge Requests
47
Merge Requests
47
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
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
f75490da
Commit
f75490da
authored
2 hours ago
by
Emiliano Balbuena
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(feat): Show newsfeed banner
parent
575782fe
epic/minds-pro
1 merge request
!459
WIP: (feat): Minds Pro
Pipeline
#72481553
passed with stages
in 32 minutes and 52 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
newsfeed.component.html
src/app/modules/newsfeed/newsfeed.component.html
+8
-0
subscription.component.ts
src/app/modules/pro/subscription.component.ts
+6
-0
No files found.
src/app/modules/newsfeed/newsfeed.component.html
View file @
f75490da
...
...
@@ -104,6 +104,14 @@
<span>
Upgrade to Plus
</span>
</a>
<a
class=
"m-page--sidebar--navigation--item"
routerLink=
"/pro"
*
ngIf=
"session.isLoggedIn() && !session.getLoggedInUser().pro"
>
<i
class=
"material-icons"
>
business_center
</i>
<span>
Become Pro
</span>
</a>
<a
class=
"m-page--sidebar--navigation--item"
routerLink=
"/tokens"
*
ngIf=
"session.isLoggedIn()"
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/pro/subscription.component.ts
View file @
f75490da
...
...
@@ -19,6 +19,8 @@ export class ProSubscriptionComponent implements OnInit {
error
:
string
=
''
;
minds
=
window
.
Minds
;
constructor
(
protected
service
:
ProService
,
protected
session
:
Session
,
...
...
@@ -58,8 +60,10 @@ export class ProSubscriptionComponent implements OnInit {
try
{
await
this
.
service
.
enable
();
this
.
active
=
true
;
this
.
minds
.
user
.
pro
=
true
;
}
catch
(
e
)
{
this
.
active
=
false
;
this
.
minds
.
user
.
pro
=
false
;
this
.
error
=
(
e
&&
e
.
message
)
||
'
Unknown error
'
;
}
...
...
@@ -75,8 +79,10 @@ export class ProSubscriptionComponent implements OnInit {
try
{
await
this
.
service
.
disable
();
this
.
active
=
false
;
this
.
minds
.
user
.
pro
=
false
;
}
catch
(
e
)
{
this
.
active
=
true
;
this
.
minds
.
user
.
pro
=
true
;
this
.
error
=
(
e
&&
e
.
message
)
||
'
Unknown error
'
;
}
...
...
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