improve tx proposal list item styling

This commit is contained in:
Marty Alcala 2016-11-03 17:29:29 -04:00
commit 073b063a48
6 changed files with 105 additions and 16 deletions

View file

@ -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++;

View file

@ -39,6 +39,14 @@
align-items: center;
background: #fff;
padding-left: 1rem;
&__marker {
position: absolute;
height: 100%;
width: 3px;
background: #F5A623;
left: 0;
}
}
&__tx-content {