Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Commit 3e22e23

Browse files
Merge branch 'master' of github.com:binary-com/binary-static into replacing_reset_password_text
2 parents c49ea1c + 6aafbf1 commit 3e22e23

File tree

36 files changed

+459
-304
lines changed

36 files changed

+459
-304
lines changed

scripts/config/pages.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ module.exports = [
7272

7373
// ==================== Section: "static" ====================
7474
['404', 'static/404', 'full_width', '404'],
75+
['deactivated-account', 'static/deactivated_account', 'full_width', 'Account Deactivated'],
7576
['home', 'static/home', 'full_width', 'Online trading platform for binary options on forex, stock indices, commodities and Synthetic indices'],
7677
['keep-safe', 'static/keep_safe', 'full_width', 'Keep Safe'],
7778
['tour', 'static/tour', 'full_width', 'Tour'],

scripts/js_texts/extracted_strings_app.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ module.exports = [
5656
'Binance USD',
5757
'Binary Coin',
5858
'Binary Password Reset',
59+
'Binary options trading is not available in your country.',
60+
'Binary options trading is not available in your financial account.',
5961
'Binary password',
6062
'Bitcoin',
6163
'Blurry photo detected',
@@ -525,13 +527,9 @@ module.exports = [
525527
'Sorry, account signup is not available in your country.',
526528
'Sorry, an error occurred while processing your account.',
527529
'Sorry, an error occurred while processing your request.',
528-
'Sorry, but binary options trading is not available in your country.',
529-
'Sorry, but binary options trading is not available in your financial account.',
530530
'Sorry, deposits for this currency are currently disabled.',
531531
'Sorry, no mobile phone bills',
532-
'Sorry, this feature is available to virtual accounts only.',
533532
'Sorry, this feature is not available in your jurisdiction.',
534-
'Sorry, this page is not available in your country of residence.',
535533
'Sorry, withdrawals for this currency are currently disabled.',
536534
'Spot',
537535
'Spot Time',
@@ -601,6 +599,7 @@ module.exports = [
601599
'This contract is only available on [_1]DTrader[_2].',
602600
'This contract lost',
603601
'This contract won',
602+
'This feature is available to virtual accounts only.',
604603
'This feature is not relevant to virtual-money accounts.',
605604
'This field is required.',
606605
'This is a staging server - For testing purposes only',
@@ -609,6 +608,7 @@ module.exports = [
609608
'This is a very common password',
610609
'This is similar to a commonly used password',
611610
'This is your [_1] account.',
611+
'This page is not available in your country of residence.',
612612
'This page is only available to logged out clients.',
613613
'This password is on the blacklist',
614614
'Thursday',
Lines changed: 1 addition & 0 deletions
Loading

src/javascript/_autogenerated/ach.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/javascript/_autogenerated/es.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/javascript/_autogenerated/fr.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/javascript/_autogenerated/id.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/javascript/_autogenerated/it.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/javascript/_autogenerated/pl.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/javascript/_autogenerated/pt.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/javascript/_autogenerated/ru.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/javascript/_autogenerated/vi.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/javascript/_autogenerated/zh_cn.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/javascript/_autogenerated/zh_tw.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/javascript/_common/base/login.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,16 @@ const getLanguage = require('../language').get;
44
const isMobile = require('../os_detect').isMobile;
55
const isStorageSupported = require('../storage').isStorageSupported;
66
const LocalStore = require('../storage').LocalStore;
7+
const removeCookies = require('../storage').removeCookies;
78
const urlForCurrentDomain = require('../url').urlForCurrentDomain;
89
const isLoginPages = require('../utility').isLoginPages;
910
const TrafficSource = require('../../app/common/traffic_source');
1011
const getAppId = require('../../config').getAppId;
1112

1213
const Login = (() => {
1314
const redirectToLogin = (reset_password) => {
14-
if ((!Client.isLoggedIn() && !isLoginPages() && isStorageSupported(sessionStorage)) || reset_password) {
15+
removeCookies('hide_guide');
16+
if (!Client.isLoggedIn() && !isLoginPages() && isStorageSupported(sessionStorage) || reset_password) {
1517
sessionStorage.setItem('redirect_url', window.location.href);
1618
window.location.href = loginUrl();
1719
}

src/javascript/app/base/binary_loader.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,9 @@ const BinaryLoader = (() => {
148148
}
149149
});
150150
}
151+
if (this_page === 'deactivated-account' && Client.isLoggedIn()) {
152+
displayMessage(error_messages.not_deactivated());
153+
}
151154

152155
BinarySocket.wait('authorize').then(() => {
153156
if (config.no_blocked_country && Client.isLoggedIn() && Client.isOptionsBlocked()) {

src/javascript/app/base/binary_pages.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ const VideoFacility = require('../pages/user/video_facility');
5555
// const Charity = require('../../static/pages/charity');
5656
const Contact = require('../../static/pages/contact');
5757
// const Contact2 = require('../../static/pages/contact_2');
58+
const DeactivatedAccount = require('../../static/pages/deactivated_account');
5859
const GetStarted = require('../../static/pages/get_started');
5960
const Home = require('../../static/pages/home');
6061
const KeepSafe = require('../../static/pages/keep_safe');
@@ -142,6 +143,7 @@ const pages_config = {
142143
'binary-options' : { module: GetStarted.BinaryOptions },
143144
// 'contact-2' : { module: Contact2 },
144145
'contract-specifications': { module: TabSelector },
146+
'deactivated-account' : { module: DeactivatedAccount },
145147
'get-started' : { module: TabSelector },
146148
'how-to-trade-mt5' : { module: TabSelector },
147149
'ib-faq' : { module: StaticPages.IBProgrammeFAQ },

src/javascript/app/base/client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ const Client = (() => {
119119

120120
if (response.logout !== 1) return;
121121
removeCookies('login', 'loginid', 'loginid_list', 'email', 'residence', 'settings'); // backward compatibility
122-
removeCookies('reality_check', 'affiliate_token', 'affiliate_tracking', 'onfido_token');
122+
removeCookies('reality_check', 'affiliate_token', 'affiliate_tracking', 'onfido_token', 'hide_guide');
123123
// clear elev.io session storage
124124
sessionStorage.removeItem('_elevaddon-6app');
125125
sessionStorage.removeItem('_elevaddon-6create');

src/javascript/app/common/guide.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ const Guide = (() => {
4646

4747
makeButton();
4848
};
49-
5049
/*
5150
* do not show the guide button if its close (X) has been clicked before
5251
*/

src/javascript/app/pages/user/account/settings/account_closure.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -181,16 +181,7 @@ const AccountClosure = (() => {
181181
}
182182
el_step_2_submit.setAttribute('disabled', false);
183183
} else {
184-
el_submit_loading.setVisibility(0);
185-
showStep(3);
186-
window.scrollTo({ top: 0, behavior: 'smooth' });
187-
188-
sessionStorage.setItem('closingAccount', 1);
189-
setTimeout(() => {
190-
// we need to clear all stored client data by performing a logout action and then redirect to home
191-
// otherwise it will think that client is still logged in and redirect to trading page
192-
Client.sendLogoutRequest(false, Url.urlFor('home'));
193-
}, 10000);
184+
Client.sendLogoutRequest(false, Url.urlFor('deactivated-account'));
194185
}
195186
});
196187
};
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
const Url = require('../../../javascript/_common/url.js');
2+
const Client = require('../../app/base/client');
3+
const BinaryPjax = require('../../app/base/binary_pjax');
4+
5+
const DeactivatedAccount = (() => {
6+
const onLoad = () => {
7+
const redirect_home = Url.urlFor('home');
8+
const redirect_trading = Url.urlFor('trading');
9+
setTimeout(() => {
10+
if (Client.isLoggedIn()) {
11+
BinaryPjax.load(redirect_trading);
12+
} else {
13+
BinaryPjax.load(redirect_home);
14+
}
15+
16+
}, 5000);
17+
};
18+
19+
return {
20+
onLoad,
21+
};
22+
})();
23+
24+
module.exports = DeactivatedAccount;

src/sass/static/pages.scss

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1642,6 +1642,41 @@ body #not_authenticated_financial ul.checked > li {
16421642
}
16431643
}
16441644

1645+
.deactivated-account-content {
1646+
text-align: center;
1647+
1648+
.close-user-account {
1649+
height: 25vh;
1650+
1651+
.msg_main_modal {
1652+
.notice-msg {
1653+
background-color: transparent;
1654+
height: auto;
1655+
margin: auto;
1656+
1657+
img {
1658+
width: 4rem;
1659+
margin-bottom: 1rem;
1660+
}
1661+
p {
1662+
font-weight: 500;
1663+
}
1664+
h1 {
1665+
@media (max-width: 500px) {
1666+
font-size: 30px;
1667+
}
1668+
}
1669+
@media (max-width: 500px) {
1670+
width: 90%;
1671+
}
1672+
}
1673+
}
1674+
@media (max-width: 500px) {
1675+
margin-bottom: 5rem;
1676+
}
1677+
}
1678+
}
1679+
16451680
.account-closure {
16461681
.notice-msg-wrapper {
16471682
background-color: $COLOR_YELLOW;
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import React from 'react';
2+
3+
const DeactivatedAccount = () => (
4+
<div id='msg_main' className='center-text gr-gutter gr-padding-30 close-user-account'>
5+
<div className='msg_main_modal'>
6+
<div className='notice-msg'>
7+
<img className='responsive' src={it.url_for('images/pages/deactivated_account/lock.svg')} alt='Lock image' />
8+
<h1>
9+
{it.L('We\'re sorry to see you leave.')}
10+
</h1>
11+
<p>
12+
{it.L('Your account is now deactivated.')}
13+
</p>
14+
</div>
15+
</div>
16+
</div>
17+
);
18+
19+
export default DeactivatedAccount;

src/translations/ach_UG.po

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ msgid ""
22
msgstr ""
33
"Project-Id-Version: binary-static\n"
44
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
5-
"PO-Revision-Date: 2021-06-01 09:32\n"
5+
"PO-Revision-Date: 2021-06-02 07:58\n"
66
"Last-Translator: \n"
77
"Language-Team: Acholi\n"
88
"MIME-Version: 1.0\n"
@@ -1009,6 +1009,9 @@ msgstr "crwdns45895:0crwdne45895:0"
10091009
msgid "Account Closure"
10101010
msgstr "crwdns85223:0crwdne85223:0"
10111011

1012+
msgid "Account Deactivated"
1013+
msgstr "crwdns163208:0crwdne163208:0"
1014+
10121015
msgid "Account Deposit Currency"
10131016
msgstr "crwdns46002:0crwdne46002:0"
10141017

@@ -2182,6 +2185,12 @@ msgstr "crwdns53614:0crwdne53614:0"
21822185
msgid "Binary options trading frequency"
21832186
msgstr "crwdns53616:0crwdne53616:0"
21842187

2188+
msgid "Binary options trading is not available in your country."
2189+
msgstr "crwdns163210:0crwdne163210:0"
2190+
2191+
msgid "Binary options trading is not available in your financial account."
2192+
msgstr "crwdns163212:0crwdne163212:0"
2193+
21852194
msgid "Binary options trading is relatively easy. You can purchase a contract in just three steps:"
21862195
msgstr "crwdns42035:0crwdne42035:0"
21872196

@@ -10306,12 +10315,6 @@ msgstr "crwdns39806:0crwdne39806:0"
1030610315
msgid "Sorry, an error occurred while processing your request."
1030710316
msgstr "crwdns39807:0crwdne39807:0"
1030810317

10309-
msgid "Sorry, but binary options trading is not available in your country."
10310-
msgstr "crwdns161634:0crwdne161634:0"
10311-
10312-
msgid "Sorry, but binary options trading is not available in your financial account."
10313-
msgstr "crwdns68770:0crwdne68770:0"
10314-
1031510318
msgid "Sorry, deposits for this currency are currently disabled."
1031610319
msgstr "crwdns90076:0crwdne90076:0"
1031710320

@@ -10321,15 +10324,9 @@ msgstr "crwdns87372:0crwdne87372:0"
1032110324
msgid "Sorry, no mobile phone bills"
1032210325
msgstr "crwdns158518:0crwdne158518:0"
1032310326

10324-
msgid "Sorry, this feature is available to virtual accounts only."
10325-
msgstr "crwdns39808:0crwdne39808:0"
10326-
1032710327
msgid "Sorry, this feature is not available in your jurisdiction."
1032810328
msgstr "crwdns39809:0crwdne39809:0"
1032910329

10330-
msgid "Sorry, this page is not available in your country of residence."
10331-
msgstr "crwdns162194:0crwdne162194:0"
10332-
1033310330
msgid "Sorry, withdrawals for this currency are currently disabled."
1033410331
msgstr "crwdns90078:0crwdne90078:0"
1033510332

@@ -12577,6 +12574,9 @@ msgstr "crwdns118290:0%1crwdne118290:0"
1257712574
msgid "This document (the \"Agreement\") sets out the terms and conditions between \"the Company\", which is Deriv Services Ltd, and the person who has applied for this programme (\"the Affiliate\"), in relation to the Affiliate's application to set up an affiliate account (and membership of the affiliate programme if the Affiliate's application is deemed successful)."
1257812575
msgstr "crwdns118292:0crwdne118292:0"
1257912576

12577+
msgid "This feature is available to virtual accounts only."
12578+
msgstr "crwdns163214:0crwdne163214:0"
12579+
1258012580
msgid "This feature is not relevant to virtual-money accounts."
1258112581
msgstr "crwdns40159:0crwdne40159:0"
1258212582

@@ -12643,6 +12643,9 @@ msgstr "crwdns56146:0%1crwdne56146:0"
1264312643
msgid "This obligation encompasses the prohibition of unlawful payments or the granting of any form of unlawful benefits to public officials, business partners, employees, family members, or any other partners."
1264412644
msgstr "crwdns55786:0crwdne55786:0"
1264512645

12646+
msgid "This page is not available in your country of residence."
12647+
msgstr "crwdns163216:0crwdne163216:0"
12648+
1264612649
msgid "This page is only available to logged out clients."
1264712650
msgstr "crwdns52504:0crwdne52504:0"
1264812651

@@ -14749,6 +14752,9 @@ msgstr "crwdns40729:0crwdne40729:0"
1474914752
msgid "Your account is fully authenticated and your withdrawal limits have been lifted."
1475014753
msgstr "crwdns40731:0crwdne40731:0"
1475114754

14755+
msgid "Your account is now deactivated."
14756+
msgstr "crwdns163218:0crwdne163218:0"
14757+
1475214758
msgid "Your account is now deactived."
1475314759
msgstr "crwdns162570:0crwdne162570:0"
1475414760

0 commit comments

Comments
 (0)