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() {
walletService.getTxNote($scope.wallet, $scope.btx.txid, function(err, note) {
if (err) {

View file

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

View file

@ -91,9 +91,11 @@
<div class="item low-fees" ng-if="btx.lowAmount">
<i class="icon"><img src="img/icon-warning.png" width="20px"></i>
<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 class="item single-line">
<span class="label" translate>Confirmations</span>
<span class="item-note">