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++;
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue