Merge pull request #6664 from JDonadio/feat/link-low-amount

Amount too low - warning
This commit is contained in:
Gustavo Maximiliano Cortez 2017-08-31 11:05:50 -03:00 committed by GitHub
commit 4fd9ac9062
3 changed files with 17 additions and 2 deletions

View file

@ -40,6 +40,16 @@ angular.module('copayApp.controllers').controller('txDetailsController', functio
}); });
}); });
$scope.readMore = function() {
var url = 'https://github.com/bitpay/copay/wiki/COPAY---FAQ#amount-too-low-to-spend';
var optIn = true;
var title = null;
var message = gettextCatalog.getString('Read more in our Wiki');
var okText = gettextCatalog.getString('Open');
var cancelText = gettextCatalog.getString('Go Back');
externalLinkService.open(url, optIn, title, message, okText, cancelText);
};
function updateMemo() { function updateMemo() {
walletService.getTxNote($scope.wallet, $scope.btx.txid, function(err, note) { walletService.getTxNote($scope.wallet, $scope.btx.txid, function(err, note) {
if (err) { if (err) {

View file

@ -99,6 +99,9 @@
i { i {
padding-right: 20px; padding-right: 20px;
} }
span {
display: inline;
}
} }
} }
.toggle-unconfirmed { .toggle-unconfirmed {

View file

@ -91,7 +91,9 @@
<div class="item low-fees" ng-if="btx.lowAmount"> <div class="item low-fees" ng-if="btx.lowAmount">
<i class="icon"><img src="img/icon-warning.png" width="20px"></i> <i class="icon"><img src="img/icon-warning.png" width="20px"></i>
<span translate> <span translate>
This transaction amount is too small compared to current Bitcoin network fees. Spending these funds will need a Bitcoin network fee cost comparable to the funds itself. </span> This transaction amount is too small compared to current Bitcoin network fees. Spending these funds will need a Bitcoin network fee cost comparable
to the funds itself. <a ng-click="readMore()">Read more</a>
</span>
</div> </div>
<div class="item single-line"> <div class="item single-line">