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
804
Merge Requests
54
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
e10b954b
Commit
e10b954b
authored
2 hours ago
by
Mark Harding
Browse files
Options
Download
(chore): prevent nsfw from using stripe
parent
ea78a039
No related merge requests found
Pipeline
#96225650
failed with stages
in 11 minutes and 2 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
1 deletion
+29
-1
src/app/modules/wallet/usd/onboarding/onboarding.component.html
View file @
e10b954b
<div
*ngIf=
"eligible === false"
>
<p>
Due to Stripe's
<a
href=
"https://stripe.com/restricted-businesses"
target=
"_blank"
>
Terms of Use
</a
>
, this feature is currently unavailable for any channel determined to be
not safe for work (NSFW). If you are impacted by Stripe's terms and still
wish to monetize your channel, please consider onboarding to receive
payments in
<a
(click)=
"openBtc()"
>
Bitcoin
</a>
,
<a
routerLink=
"/wallet/tokens/addresses"
>
Ether
</a>
or
<a
routerLink=
"/wallet/tokens/addresses"
>
Minds Tokens
</a>
.
</p>
</div>
<form
*ngIf=
"eligible === true"
(submit)=
"submit()"
[formGroup]=
"form"
#f
="
ngForm
"
...
...
This diff is collapsed.
src/app/modules/wallet/usd/onboarding/onboarding.component.ts
View file @
e10b954b
...
...
@@ -13,6 +13,8 @@ import { Client } from '../../../../services/api';
import
{
requiredFor
,
optionalFor
}
from
'
./onboarding.validators
'
;
import
{
OverlayModalService
}
from
'
../../../../services/ux/overlay-modal
'
;
import
{
WalletUSDTermsComponent
}
from
'
../terms.component
'
;
import
{
Session
}
from
'
inspector
'
;
import
{
BTCSettingsComponent
}
from
'
../../../payments/btc/settings.component
'
;
@
Component
({
selector
:
'
m-walletUsd__onboarding
'
,
...
...
@@ -22,6 +24,7 @@ export class WalletUSDOnboardingComponent implements OnInit {
form
:
FormGroup
;
inProgress
:
boolean
=
false
;
restrictAsVerified
:
boolean
=
false
;
eligible
:
boolean
;
minds
=
window
.
Minds
;
merchant
:
any
;
...
...
@@ -36,7 +39,8 @@ export class WalletUSDOnboardingComponent implements OnInit {
private
client
:
Client
,
private
cd
:
ChangeDetectorRef
,
private
router
:
Router
,
protected
overlayModal
:
OverlayModalService
protected
overlayModal
:
OverlayModalService
,
private
session
:
Session
)
{}
ngOnInit
()
{
...
...
@@ -70,6 +74,12 @@ export class WalletUSDOnboardingComponent implements OnInit {
this
.
form
.
patchValue
(
this
.
merchant
);
}
if
(
this
.
session
.
getLoggedInUser
().
nsfw
.
length
>
0
)
{
this
.
eligible
=
false
;
}
else
{
this
.
eligible
=
true
;
}
this
.
disableRestrictedFields
();
}
...
...
@@ -180,6 +190,10 @@ export class WalletUSDOnboardingComponent implements OnInit {
this
.
overlayModal
.
create
(
WalletUSDTermsComponent
).
present
();
}
openBtc
()
{
this
.
overlayModal
.
create
(
BTCSettingsComponent
,
{}).
present
();
}
detectChanges
()
{
this
.
cd
.
markForCheck
();
this
.
cd
.
detectChanges
();
...
...
This diff is collapsed.
Please
register
or
sign in
to comment