feat: view savings transaction page (#933)

Fixes: #932
This commit is contained in:
Karan Takalkar
2020-06-27 17:31:19 +05:30
committed by GitHub
parent 8e86ccab8f
commit 6ed67a763d
15 changed files with 298 additions and 6 deletions
@@ -54,7 +54,7 @@
</ng-container>
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
<tr mat-row *matRowDef="let row; columns: displayedColumns;" class="select-row" [routerLink]="[row.id]"></tr>
</table>
@@ -15,5 +15,8 @@
margin: 0 10%;
line-height: 25px;
}
.select-row:hover {
cursor: pointer;
}
}
}
@@ -28,7 +28,7 @@ export class TransactionsTabComponent implements OnInit {
*/
constructor(private route: ActivatedRoute) {
this.route.parent.data.subscribe((data: { savingsAccountData: any }) => {
this.transactionsData = data.savingsAccountData.transactions;
this.transactionsData = data.savingsAccountData.transactions.filter((transaction: any) => !transaction.reversed);
this.status = data.savingsAccountData.status.value;
});
}