Colors top-up icon green or pending.
This commit is contained in:
parent
39f974dd50
commit
59edea271b
7 changed files with 125 additions and 58 deletions
|
|
@ -1,6 +1,6 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('copayApp.controllers').controller('bitpayCardController', function($scope, $timeout, $log, $state, lodash, bitpayCardService, moment, popupService, gettextCatalog, $ionicHistory, bitpayService, externalLinkService) {
|
||||
angular.module('copayApp.controllers').controller('bitpayCardController', function($scope, $timeout, $log, $state, lodash, bitpayCardService, moment, popupService, gettextCatalog, $ionicHistory, bitpayService, externalLinkService, timeService) {
|
||||
|
||||
var self = this;
|
||||
var runningBalance;
|
||||
|
|
@ -163,6 +163,14 @@ angular.module('copayApp.controllers').controller('bitpayCardController', functi
|
|||
runningBalance -= parseFloat(tx.amount);
|
||||
};
|
||||
|
||||
this.withinPastDay = function(tx) {
|
||||
var result = false;
|
||||
if (tx.timestamp) {
|
||||
result = timeService.withinPastDay(tx.timestamp);
|
||||
}
|
||||
return result;
|
||||
};
|
||||
|
||||
this.openExternalLink = function(url) {
|
||||
var optIn = true;
|
||||
var title = null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue