2020-11-04 13:36:30 +01:00
|
|
|
<!-- Begin page -->
|
|
|
|
<div class="wrapper">
|
|
|
|
<app-sidebar></app-sidebar>
|
|
|
|
|
|
|
|
<!-- ============================================================== -->
|
|
|
|
<!-- Start Page Content here -->
|
|
|
|
<!-- ============================================================== -->
|
|
|
|
|
|
|
|
<div id="content">
|
|
|
|
<app-topbar></app-topbar>
|
|
|
|
<!-- Start Content-->
|
|
|
|
<div class="container-fluid" appMenuSelection>
|
2020-12-05 07:30:30 +01:00
|
|
|
<nav aria-label="breadcrumb">
|
|
|
|
<ol class="breadcrumb">
|
|
|
|
<li class="breadcrumb-item"><a routerLink="/home">Home</a></li>
|
|
|
|
<li class="breadcrumb-item active" aria-current="page">Transactions</li>
|
|
|
|
</ol>
|
|
|
|
</nav>
|
2020-11-04 13:36:30 +01:00
|
|
|
<div class="card">
|
2020-11-25 08:55:27 +01:00
|
|
|
<mat-card-title class="card-header">
|
2020-11-04 13:36:30 +01:00
|
|
|
Transfers
|
2020-11-25 08:55:27 +01:00
|
|
|
</mat-card-title>
|
2020-11-04 13:36:30 +01:00
|
|
|
<div class="card-body">
|
2020-11-25 08:55:27 +01:00
|
|
|
|
2020-11-04 13:36:30 +01:00
|
|
|
<app-transaction-details [transaction]="transaction"></app-transaction-details>
|
2020-11-25 08:55:27 +01:00
|
|
|
|
|
|
|
<div *ngIf="transactionSelection.selected.length <=0" class="row card-header">
|
|
|
|
<mat-form-field appearance="outline">
|
|
|
|
<mat-label> TRANSFER TYPE </mat-label>
|
2020-12-05 07:30:30 +01:00
|
|
|
<mat-select id="typeSelect" [(value)]="transactionsType" (selectionChange)="filterTransactions()">
|
|
|
|
<mat-option value="all">ALL TRANSFERS</mat-option>
|
|
|
|
<mat-option value="transaction">PAYMENTS</mat-option>
|
|
|
|
<mat-option value="conversion">CONVERSION</mat-option>
|
2020-11-25 08:55:27 +01:00
|
|
|
<mat-option value="disbursements">DISBURSEMENTS</mat-option>
|
2020-12-05 07:30:30 +01:00
|
|
|
<mat-option value="rewards">REWARDS</mat-option>
|
2020-11-25 08:55:27 +01:00
|
|
|
<mat-option value="reclamation">RECLAMATION</mat-option>
|
|
|
|
</mat-select>
|
|
|
|
</mat-form-field>
|
2020-11-04 13:36:30 +01:00
|
|
|
</div>
|
2020-11-25 08:55:27 +01:00
|
|
|
|
|
|
|
<div *ngIf="transactionSelection.selected.length > 0" class="row card-header">
|
|
|
|
<p><strong> {{transactionSelection.selected.length}} selected </strong></p>
|
2020-12-05 07:30:30 +01:00
|
|
|
<mat-form-field appearance="outline" class="ml-auto">
|
2020-11-25 08:55:27 +01:00
|
|
|
<mat-label> TRANSACTION STATUS </mat-label>
|
|
|
|
<mat-select id="statusSelect">
|
|
|
|
<mat-option selected disabled> -- SELECT -- </mat-option>
|
|
|
|
<mat-option value="complete">COMPLETE</mat-option>
|
|
|
|
<mat-option value="reject">REJECT</mat-option>
|
|
|
|
</mat-select>
|
|
|
|
</mat-form-field>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<mat-form-field appearance="outline">
|
|
|
|
<mat-label> Filter </mat-label>
|
|
|
|
<input matInput type="text" (keyup)="doFilter($event.target.value, transactionDataSource)" placeholder="Filter">
|
|
|
|
<mat-icon matSuffix>search</mat-icon>
|
|
|
|
</mat-form-field>
|
|
|
|
|
2021-03-10 10:47:01 +01:00
|
|
|
<table mat-table class="mat-elevation-z10" [dataSource]="transactionDataSource" matSort matSortActive="created"
|
2020-11-25 08:55:27 +01:00
|
|
|
matSortDirection="desc" matSortDisableClear>
|
2020-12-05 07:30:30 +01:00
|
|
|
|
2020-11-25 08:55:27 +01:00
|
|
|
<ng-container matColumnDef="sender">
|
2021-03-10 10:47:01 +01:00
|
|
|
<th mat-header-cell *matHeaderCellDef mat-sort-header> Sender </th>
|
|
|
|
<td mat-cell *matCellDef="let transaction"> {{transaction?.sender?.vcard.fn[0].value}} </td>
|
2020-12-05 07:30:30 +01:00
|
|
|
</ng-container>
|
|
|
|
|
2021-03-10 10:47:01 +01:00
|
|
|
<!-- <ng-container matColumnDef="senderLocation">-->
|
|
|
|
<!-- <mat-header-cell *matHeaderCellDef mat-sort-header> Sender Location </mat-header-cell>-->
|
|
|
|
<!-- <mat-cell *matCellDef="let transaction"> {{transaction?.sender?.location.area_name}} </mat-cell>-->
|
|
|
|
<!-- </ng-container>-->
|
2020-11-25 08:55:27 +01:00
|
|
|
|
|
|
|
<ng-container matColumnDef="recipient">
|
2021-03-10 10:47:01 +01:00
|
|
|
<th mat-header-cell *matHeaderCellDef mat-sort-header> Recipient </th>
|
|
|
|
<td mat-cell *matCellDef="let transaction"> {{transaction?.recipient?.vcard.fn[0].value}} </td>
|
2020-12-05 07:30:30 +01:00
|
|
|
</ng-container>
|
|
|
|
|
2021-03-10 10:47:01 +01:00
|
|
|
<!-- <ng-container matColumnDef="recipientLocation">-->
|
|
|
|
<!-- <mat-header-cell *matHeaderCellDef mat-sort-header> Recipient Location </mat-header-cell>-->
|
|
|
|
<!-- <mat-cell *matCellDef="let transaction"> {{transaction?.recipient?.location.area_name}} </mat-cell>-->
|
|
|
|
<!-- </ng-container>-->
|
2020-11-25 08:55:27 +01:00
|
|
|
|
2021-03-10 10:47:01 +01:00
|
|
|
<!-- <ng-container matColumnDef="token">-->
|
|
|
|
<!-- <mat-header-cell *matHeaderCellDef mat-sort-header> Token </mat-header-cell>-->
|
|
|
|
<!-- <mat-cell *matCellDef="let transaction">-->
|
|
|
|
<!-- <span *ngIf="transaction.type == 'transaction'">{{transaction?.token.name}}</span>-->
|
|
|
|
<!-- <span *ngIf="transaction.type == 'conversion'">{{transaction?.destinationToken.name}}</span>-->
|
|
|
|
<!-- </mat-cell>-->
|
|
|
|
<!-- </ng-container>-->
|
2020-11-25 08:55:27 +01:00
|
|
|
|
|
|
|
<ng-container matColumnDef="value">
|
2021-03-10 10:47:01 +01:00
|
|
|
<th mat-header-cell *matHeaderCellDef mat-sort-header> Value </th>
|
|
|
|
<td mat-cell *matCellDef="let transaction">
|
|
|
|
<span *ngIf="transaction.type == 'transaction'">{{transaction?.value | tokenRatio}}</span>
|
|
|
|
<span *ngIf="transaction.type == 'conversion'">{{transaction?.toValue | tokenRatio}}</span>
|
|
|
|
</td>
|
2020-11-25 08:55:27 +01:00
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
<ng-container matColumnDef="created">
|
2021-03-10 10:47:01 +01:00
|
|
|
<th mat-header-cell *matHeaderCellDef mat-sort-header> Created </th>
|
|
|
|
<td mat-cell *matCellDef="let transaction"> {{transaction?.tx.timestamp | date}} </td>
|
2020-11-25 08:55:27 +01:00
|
|
|
</ng-container>
|
|
|
|
|
2020-12-05 07:30:30 +01:00
|
|
|
<ng-container matColumnDef="type">
|
2021-03-10 10:47:01 +01:00
|
|
|
<th mat-header-cell *matHeaderCellDef mat-sort-header> TYPE </th>
|
|
|
|
<td mat-cell *matCellDef="let transaction">
|
|
|
|
<span class="badge badge-success badge-pill"> {{transaction?.type}} </span>
|
|
|
|
</td>
|
2020-11-25 08:55:27 +01:00
|
|
|
</ng-container>
|
|
|
|
|
2021-03-10 10:47:01 +01:00
|
|
|
<!-- <ng-container matColumnDef="select">-->
|
|
|
|
<!-- <mat-header-cell *matHeaderCellDef>-->
|
|
|
|
<!-- <mat-checkbox (change)="$event ? masterToggle(transactionSelection, transactionDataSource) : null"-->
|
|
|
|
<!-- [checked]="transactionSelection.hasValue() && isAllSelected(transactionSelection, transactionDataSource)"-->
|
|
|
|
<!-- [indeterminate]="transactionSelection.hasValue() && !isAllSelected(transactionSelection, transactionDataSource)">-->
|
|
|
|
<!-- </mat-checkbox>-->
|
|
|
|
<!-- </mat-header-cell>-->
|
|
|
|
<!-- <mat-cell *matCellDef="let transaction">-->
|
|
|
|
<!-- <mat-checkbox (click)="$event.stopPropagation()"-->
|
|
|
|
<!-- (change)="$event ? transactionSelection.toggle(transaction) : null"-->
|
|
|
|
<!-- [checked]="transactionSelection.isSelected(transaction)">-->
|
|
|
|
<!-- </mat-checkbox>-->
|
|
|
|
<!-- </mat-cell>-->
|
|
|
|
<!-- </ng-container>-->
|
|
|
|
|
|
|
|
<tr mat-header-row *matHeaderRowDef="transactionDisplayedColumns"></tr>
|
|
|
|
<tr mat-row *matRowDef="let transaction; columns: transactionDisplayedColumns;" (click)="viewTransaction(transaction)"></tr>
|
|
|
|
</table>
|
2020-11-25 08:55:27 +01:00
|
|
|
|
|
|
|
<mat-paginator [pageSize]="10" [pageSizeOptions]="[10, 20, 50, 100]" showFirstLastButtons></mat-paginator>
|
|
|
|
|
2020-11-04 13:36:30 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<app-footer appMenuSelection></app-footer>
|
|
|
|
</div>
|
|
|
|
<!-- ============================================================== -->
|
|
|
|
<!-- End Page content -->
|
|
|
|
<!-- ============================================================== -->
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|