improve tx proposal list item styling
This commit is contained in:
parent
b0e23b7231
commit
073b063a48
6 changed files with 105 additions and 16 deletions
|
|
@ -172,9 +172,9 @@ angular.module('copayApp.controllers').controller('walletDetailsController', fun
|
|||
return getMonthYear(date1) === getMonthYear(date2);
|
||||
}
|
||||
|
||||
$scope.createdWithinPastDay = function(tx) {
|
||||
$scope.createdWithinPastDay = function(time) {
|
||||
var now = new Date();
|
||||
var date = new Date(tx.time * 1000);
|
||||
var date = new Date(time * 1000);
|
||||
return (now.getTime() - date.getTime()) < (1000 * 60 * 60 * 24);
|
||||
};
|
||||
|
||||
|
|
@ -187,6 +187,10 @@ angular.module('copayApp.controllers').controller('walletDetailsController', fun
|
|||
return date.getMonth() + date.getFullYear();
|
||||
}
|
||||
|
||||
$scope.isUnconfirmed = function(tx) {
|
||||
return !tx.time && (!tx.confirmations || tx.confirmations === 0);
|
||||
};
|
||||
|
||||
$scope.showMore = function() {
|
||||
$timeout(function() {
|
||||
currentTxHistoryPage++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue