wire actual month to group label component

This commit is contained in:
Marty Alcala 2016-11-01 17:47:07 -04:00
commit 74a15b824a
3 changed files with 7 additions and 1 deletions

View file

@ -149,6 +149,11 @@ angular.module('copayApp.controllers').controller('walletDetailsController', fun
$scope.txHistory = $scope.completeTxHistory.slice(0, (currentTxHistoryPage + 1) * HISTORY_SHOW_LIMIT);
$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() {

View file

@ -64,6 +64,7 @@
}
#walletDetails {
background: #F8F8F9;
.bar-header {
border: 0;
background: none;

View file

@ -176,7 +176,7 @@
<div class="wallet-details__list" ng-show="txHistory[0]">
<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">
<img class="wallet-details__tx-icon" src="img/icon-tx-received.svg" width="40" ng-if="btx.action == 'received'">