Skip to content

Commit

Permalink
refactor(popup): Improved some messages to a user
Browse files Browse the repository at this point in the history
  • Loading branch information
beregovoy68 committed Aug 15, 2016
1 parent 63883ed commit d6a7aca
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
9 changes: 5 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,13 @@ <h2>NEW ACCOUNT - NOTICE</h2>
<img class="wPop-header" src="img/modal-header-round.svg" />
<div class="wPop-content">
<h2>SEED NOTICE</h2>
<p>Your wallet seed contains trailing whitespace character(s).
<p>
Your wallet seed contains one or more trailing whitespace characters.
<br/><br/>
A seed with a whitespace at the end and a seed without it are different seeds and lead to different generated addresses.
A seed with a whitespace at the end and a seed without one are different, and will result in different addresses generated.
<br/><br/>
It is strongly recommended to avoid trailing whitespaces in the seed. If you understand all the implications of having a seed with trailing whitespace(s) press <b>PROCEED</b>.
Press <b>CANCEL</b> or close the dialog to edit the seed.<br/>
It is strongly recommended that you avoid trailing whitespaces in the seed. If you understand the implications of including a trailing whitespace in your seed, press <b>PROCEED</b>.
Press <b>CANCEL</b> or close the dialog box to edit your seed.<br/>
</p>
<br/>
<div class="wPop-content-buttons">
Expand Down
7 changes: 3 additions & 4 deletions js/waves.ui.wallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ var Waves = (function(Waves, $, undefined) {
},
wavessendamount : {
required : 'Amount to send is required',
decimal : 'Amount to send must be a decimal number with dot (.) as a decimal separator with no more than {0} fraction digits',
decimal : 'The amount to send must be a number with no more than {0} digits after the decimal point (.)',
min : 'Payment amount is too small. It should be greater or equal to ' +
Waves.UI.constants.MINIMUM_PAYMENT_AMOUNT.toFixed(Waves.UI.constants.AMOUNT_DECIMAL_PLACES)
}
Expand Down Expand Up @@ -111,9 +111,8 @@ var Waves = (function(Waves, $, undefined) {
}

if (!$.validator.methods.decimal.call(this.validator, value, element[0], Currency.WAV.precision)) {
$.growl.error({ message: 'Transaction fee must be a decimal number with dot (.) as ' +
'a decimal separator with no more than ' + Currency.WAV.precision +
' fraction digits' });
$.growl.error({ message: 'Transaction fee must be with no more than ' +
Currency.WAV.precision + ' digits after the decimal point (.)' });
element.parent().addClass(this.errorClass);

return false;
Expand Down

0 comments on commit d6a7aca

Please sign in to comment.