This repository was archived by the owner on Feb 22, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
javascript/app/pages/user/account/settings
templates/app/user/security Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -221,7 +221,7 @@ const AccountClosure = (() => {
221
221
} ;
222
222
if ( response . error . details . open_positions ) {
223
223
Object . keys ( response . error . details . open_positions ) . forEach ( ( account ) => {
224
- const txt_positions = `${ response . error . details . open_positions [ account ] } position(s)` ;
224
+ const txt_positions = `${ response . error . details . open_positions [ account ] } ${ localize ( ' position(s)' ) } ` ;
225
225
if ( / ^ M T / . test ( account ) ) {
226
226
section_id = 'account_closure_open_mt' ;
227
227
display_name = getMTDisplay ( account ) ;
@@ -245,6 +245,13 @@ const AccountClosure = (() => {
245
245
addSection ( account , txt_balance ) ;
246
246
} ) ;
247
247
}
248
+ if ( response . error . details . pending_withdrawals ) {
249
+ Object . keys ( response . error . details . pending_withdrawals ) . forEach ( ( account ) => {
250
+ const txt_pending_withdrawals = `${ response . error . details . pending_withdrawals [ account ] } ${ localize ( 'withdrawal(s)' ) } ` ;
251
+ section_id = 'account_closure_pending_withdrawals' ;
252
+ addSection ( account , txt_pending_withdrawals ) ;
253
+ } ) ;
254
+ }
248
255
} ;
249
256
250
257
const showFormMessage = ( localized_msg ) => {
Original file line number Diff line number Diff line change @@ -51,6 +51,9 @@ const AccountClosureError = () => (
51
51
< div className = 'gr-padding-20 gr-parent invisible' id = 'account_closure_balance_mt' >
52
52
{ it . L ( 'You have funds in these MT5 accounts:' ) }
53
53
</ div >
54
+ < div className = 'gr-padding-20 gr-parent invisible' id = 'account_closure_pending_withdrawals' >
55
+ { it . L ( 'You have pending withdrawal(s) in these Binary accounts:' ) }
56
+ </ div >
54
57
</ div >
55
58
< div id = 'account_closure_error_buttons' className = 'gr-padding-10 gr-child' >
56
59
< button className = 'modal-back back button no-margin' > { it . L ( 'OK' ) } </ button >
You can’t perform that action at this time.
0 commit comments