Skip to content
This repository has been archived by the owner on Sep 2, 2023. It is now read-only.

Commit

Permalink
Merge pull request #2459 from darkdarkdragon/develop-RT-3360
Browse files Browse the repository at this point in the history
[FIX] Send: alert about min btc size (RT-3360)
  • Loading branch information
yongsoo committed Apr 27, 2015
2 parents fc58810 + 3901e00 commit ab0a0e7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/js/tabs/send.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,7 @@ SendTab.prototype.angular = function (module)
// Reset constraints
send.currency_choices = $scope.currencies_all;
send.currency_force = false;
send.currencyIsBTC = false;

send.currency_choices_constraints = {};

Expand Down Expand Up @@ -485,11 +486,13 @@ SendTab.prototype.angular = function (module)

if (currencies.length === 1) {
send.currency = send.currency_force = currencies[0];
send.currencyIsBTC = _.startsWith(send.currency_force, 'BTC');
} else if (currencies.length === 0) {
send.path_status = 'error-no-currency';
send.currency = '';
} else {
send.currency_force = false;
send.currencyIsBTC = false;

if (currencies.indexOf(send.currency) === -1) {
send.currency = currencies[0];
Expand Down
5 changes: 5 additions & 0 deletions src/templates/tabs/send.jade
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,11 @@ section.col-xs-12.content(ng-controller='SendCtrl')
rp-amount-currency='{{send.currency}}'
rp-max-digits)
span.input-group-addon(ng-bind="send.currency_force")
.row(ng-if="send.currencyIsBTC")
.col-xs-12.col-sm-6.col-md-6
.alert.alert-warning(l10n)
| The minimum BTC transaction size is .001 BTC.
a(href="https://b2r.uservoice.com/knowledgebase/articles/393152-is-there-a-minimum-transaction-size", target="_blank", l10n-inc) More info
.errorGroup(ng-messages='sendForm.send_amount_currency.$error')
.error(ng-message='rpRestrictCurrencies', l10n) {{send.recipient | rpcontactname}} can't receive this currency.
.errorGroup(ng-messages='sendForm.send_amount.$dirty && sendForm.send_amount.$error')
Expand Down

0 comments on commit ab0a0e7

Please sign in to comment.