better payment details msg
This commit is contained in:
parent
d8ab49294c
commit
f210418b51
2 changed files with 16 additions and 11 deletions
|
|
@ -133,13 +133,9 @@
|
|||
</div>
|
||||
|
||||
<div class="text-center text-gray m20t" ng-show="tx.status != 'pending'">
|
||||
<div class="m10t size-12"
|
||||
ng-show="tx.status=='accepted'" translate>
|
||||
Payment accepted...
|
||||
</div>
|
||||
<div
|
||||
ng-show="!loading && tx.status!='broadcasted' && tx.status=='accepted' && tx.status!='rejected'">
|
||||
<div class="m10b size-12" translate>But not broadcasted. Try to send manually</div>
|
||||
<div ng-show="tx.status=='accepted'">
|
||||
<div class="m10b size-12" translate>Payment accepted, but not yet broadcasted</div>
|
||||
|
||||
<button class="primary round"
|
||||
ng-click="broadcast(tx)"
|
||||
ng-disabled="loading"> <i class="fi-upload-cloud"></i>
|
||||
|
|
@ -148,11 +144,11 @@
|
|||
</div>
|
||||
<div class="text-success m10t"
|
||||
ng-show="tx.status=='broadcasted'" translate>
|
||||
Payment sent!
|
||||
Payment sent
|
||||
</div>
|
||||
<div class="text-center text-warning m10t"
|
||||
ng-show="tx.status=='rejected'" translate>
|
||||
Payment finally rejected
|
||||
Payment rejected
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -30,8 +30,7 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
|
|||
if (isChromeApp) {
|
||||
var animatedSlideUp = 'full';
|
||||
var animatedSlideRight = 'full';
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
var animatedSlideUp = 'full animated slideInUp';
|
||||
var animatedSlideRight = 'full animated slideInRight';
|
||||
}
|
||||
|
|
@ -174,6 +173,8 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
|
|||
});
|
||||
};
|
||||
|
||||
var GLIDERA_LOCK_TIME = 6 * 60 * 60 * 1000;
|
||||
|
||||
this.openTxpModal = function(tx, copayers) {
|
||||
var fc = profileService.focusedClient;
|
||||
var refreshUntilItChanges = false;
|
||||
|
|
@ -186,6 +187,14 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
|
|||
$scope.canSign = fc.canSign();
|
||||
$scope.loading = null;
|
||||
$scope.color = fc.backgroundColor;
|
||||
// ToDo: use custom data
|
||||
$scope.isGlidera = false;
|
||||
|
||||
if (tx.message === 'Glidera transaction') {
|
||||
$scope.isGlidera = true;
|
||||
if ($scope.tx.canBeRemoved)
|
||||
$scope.tx.canBeRemoved = (Date.now() - (tx.ts || tx.createdOn)) > GLIDERA_LOCK_TIME;
|
||||
}
|
||||
refreshUntilItChanges = false;
|
||||
$scope.currentSpendUnconfirmed = currentSpendUnconfirmed;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue