mirror of https://github.com/BTCPrivate/copay.git
fix paypro loading notification
This commit is contained in:
parent
621e85f9b0
commit
4d31b39f94
|
@ -414,6 +414,13 @@ a:hover {
|
|||
background-color: #C0392A;
|
||||
}
|
||||
|
||||
.box-notification .box-icon.secondary {
|
||||
background-color: #3498DB;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
.box-notification a.close-notification {
|
||||
position: absolute;
|
||||
top: 8px;
|
||||
|
|
|
@ -399,7 +399,11 @@ angular.module('copayApp.controllers').controller('SendController',
|
|||
if (err) {
|
||||
copay.logger.warn(err);
|
||||
$scope.resetForm();
|
||||
$scope.error = err.toString();
|
||||
var msg = err.toString();
|
||||
if (msg.match('HTTP')) {
|
||||
msg = 'Could not fetch payment information';
|
||||
}
|
||||
$scope.error = msg;
|
||||
} else {
|
||||
$scope._merchantData = merchantData;
|
||||
$scope._domain = merchantData.domain;
|
||||
|
|
|
@ -6,7 +6,22 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="row" ng-show="fetchingURL">
|
||||
<div class="large-12 columns">
|
||||
<div class="panel">
|
||||
<div class="box-notification">
|
||||
<div class="box-icon secondary">
|
||||
<i class="fi-bitcoin-circle icon-rotate spinner size-24"></i>
|
||||
</div>
|
||||
<span class="text-secondary size-14">
|
||||
Fetching Payment Information...
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" ng-show="!fetchingURL">
|
||||
<div class="large-12 columns">
|
||||
<form name="sendForm" ng-submit="submitForm(sendForm)" novalidate>
|
||||
<div class="panel">
|
||||
|
@ -17,6 +32,7 @@
|
|||
<span class="text-warning size-14">
|
||||
{{error|translate}}
|
||||
</span>
|
||||
<a class="close-notification text-warning" ng-click="error=null">×</a>
|
||||
</div>
|
||||
<div class="box-notification" ng-show="success">
|
||||
<div class="box-icon success">
|
||||
|
@ -25,6 +41,7 @@
|
|||
<span class="text-success size-14">
|
||||
{{success|translate}}
|
||||
</span>
|
||||
<a class="close-notification text-success" ng-click="success=null">×</a>
|
||||
</div>
|
||||
|
||||
<div ng-if="!_merchantData">
|
||||
|
@ -120,15 +137,6 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row" ng-show="fetchingURL">
|
||||
<div class="large-12 columns">
|
||||
<p>>>
|
||||
<i class="fi-bitcoin-circle icon-rotate spinner"></i>
|
||||
Fetching payment request
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
<label for="comment"><span translate>Note</span>
|
||||
|
|
Loading…
Reference in New Issue