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

Commit f0ceb10

Browse files
hubert-derivHubert Koster
andauthored
Hubert / Changing button names from back to cancel. (#6527)
* changing button names from back to cancel. * merging and solving conflicts * fixing flickering loading screen after clicking cancel button. * restarting circleci * restarting circleci Co-authored-by: Hubert Koster <hubertkoster@Huberts-MacBook-Pro.local>
1 parent e05d268 commit f0ceb10

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/javascript/app/pages/user/metatrader/metatrader.ui.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -633,9 +633,6 @@ const MetaTraderUI = (() => {
633633
$form.find('#view_3').find('#trading_password_new_user').setVisibility(1);
634634
if (has_mt5_account) {
635635
$form.find('#trading_password_input').setVisibility(0);
636-
$form.find('#new_user_cancel_button').on('click', () => {
637-
location.reload();
638-
});
639636
$form.find('#has_mt5_new_user_btn_submit_new_account').setVisibility(1);
640637
} else {
641638
$form.find('#new_user_btn_submit_new_account').setVisibility(1);

src/templates/app/user/metatrader.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ const Metatrader = () => (
323323
</button>
324324
</div>
325325
<div id='view_3-buttons_new_user' className='gr-padding-10 center-text'>
326-
<button className='button button-secondary btn-back' id='new_user_cancel_button'>
326+
<button className='button button-secondary btn-cancel' id='new_user_cancel_button'>
327327
{it.L('Cancel')}
328328
</button>
329329
<a className='button button-primary invisible' id='has_mt5_new_user_btn_submit_new_account' href={it.url_for('user/security/change_passwordws')}>
@@ -352,7 +352,7 @@ const Metatrader = () => (
352352
<div id='ddl_trade_server' type='radio' />
353353
<div id='view_2-buttons' className='gr-padding-10 center-text'>
354354
<a className='button button-secondary btn-back' href='javascript:;'>
355-
<span>{it.L('Back')}</span>
355+
<span>{it.L('Cancel')}</span>
356356
</a>
357357
<a className='button btn-next' href='javascript:;'>
358358
<span>{it.L('Next')}</span>

0 commit comments

Comments
 (0)