wire actual month to group label component
This commit is contained in:
parent
45a842cbd7
commit
74a15b824a
3 changed files with 7 additions and 1 deletions
|
|
@ -149,6 +149,11 @@ angular.module('copayApp.controllers').controller('walletDetailsController', fun
|
||||||
$scope.txHistory = $scope.completeTxHistory.slice(0, (currentTxHistoryPage + 1) * HISTORY_SHOW_LIMIT);
|
$scope.txHistory = $scope.completeTxHistory.slice(0, (currentTxHistoryPage + 1) * HISTORY_SHOW_LIMIT);
|
||||||
$scope.txHistoryShowMore = $scope.completeTxHistory.length > $scope.txHistory.length;
|
$scope.txHistoryShowMore = $scope.completeTxHistory.length > $scope.txHistory.length;
|
||||||
}
|
}
|
||||||
|
console.log('$scope.completeTxHistory', $scope.completeTxHistory);
|
||||||
|
};
|
||||||
|
|
||||||
|
$scope.getDate = function(txCreated) {
|
||||||
|
return new Date(txCreated * 1000);
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.showMore = function() {
|
$scope.showMore = function() {
|
||||||
|
|
|
||||||
|
|
@ -64,6 +64,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
#walletDetails {
|
#walletDetails {
|
||||||
|
background: #F8F8F9;
|
||||||
.bar-header {
|
.bar-header {
|
||||||
border: 0;
|
border: 0;
|
||||||
background: none;
|
background: none;
|
||||||
|
|
|
||||||
|
|
@ -176,7 +176,7 @@
|
||||||
|
|
||||||
<div class="wallet-details__list" ng-show="txHistory[0]">
|
<div class="wallet-details__list" ng-show="txHistory[0]">
|
||||||
<div ng-repeat="btx in txHistory track by $index" ng-click="openTxModal(btx)">
|
<div ng-repeat="btx in txHistory track by $index" ng-click="openTxModal(btx)">
|
||||||
<div class="wallet-details__group-label">June</div>
|
<div class="wallet-details__group-label">{{getDate(btx.time) | date:'MMMM'}}</div>
|
||||||
|
|
||||||
<div class="wallet-details__item">
|
<div class="wallet-details__item">
|
||||||
<img class="wallet-details__tx-icon" src="img/icon-tx-received.svg" width="40" ng-if="btx.action == 'received'">
|
<img class="wallet-details__tx-icon" src="img/icon-tx-received.svg" width="40" ng-if="btx.action == 'received'">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue