diff --git a/docs/compodoc/components/AccountDetailsComponent.html b/docs/compodoc/components/AccountDetailsComponent.html
index d73d37c..afa072d 100644
--- a/docs/compodoc/components/AccountDetailsComponent.html
+++ b/docs/compodoc/components/AccountDetailsComponent.html
@@ -2391,7 +2391,7 @@ export class AccountDetailsComponent implements OnInit {
});
} else {
this.transactionsDataSource.data = this.transactions.filter(
- (transaction) => transaction.type === this.transactionsType
+ (transaction) => transaction.type + 's' === this.transactionsType
);
}
}
diff --git a/docs/compodoc/components/AccountsComponent.html b/docs/compodoc/components/AccountsComponent.html
index eb19209..008ae3b 100644
--- a/docs/compodoc/components/AccountsComponent.html
+++ b/docs/compodoc/components/AccountsComponent.html
@@ -160,6 +160,9 @@
sort
+
+ tokenSymbol
+
@@ -210,12 +213,12 @@
-constructor(userService: UserService, loggingService: LoggingService, router: Router)
+constructor(userService: UserService, loggingService: LoggingService, router: Router, tokenService: TokenService)
|
-
+
|
@@ -268,6 +271,18 @@
+
+ tokenService |
+
+
+ TokenService
+ |
+
+
+ No
+ |
+
+
@@ -308,8 +323,8 @@
-
+
|
@@ -378,8 +393,8 @@
-
+
|
@@ -417,8 +432,8 @@
-
+
|
@@ -458,8 +473,8 @@
-
+
|
@@ -497,8 +512,8 @@
-
+
|
@@ -538,8 +553,8 @@
-
+
|
@@ -831,7 +846,7 @@
-
+
|
@@ -867,7 +882,34 @@
-
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+ tokenSymbol
+
+
+ |
+
+
+
+ Type : string
+
+ |
+
+
+
+
|
@@ -884,7 +926,7 @@
import { MatTableDataSource } from '@angular/material/table';
import { MatPaginator } from '@angular/material/paginator';
import { MatSort } from '@angular/material/sort';
-import { LoggingService, UserService } from '@app/_services';
+import { LoggingService, TokenService, UserService } from '@app/_services';
import { Router } from '@angular/router';
import { exportCsv } from '@app/_helpers';
import { strip0x } from '@src/assets/js/ethtx/dist/hex';
@@ -906,6 +948,7 @@ export class AccountsComponent implements OnInit {
pageSizeOptions: Array<number> = [10, 20, 50, 100];
accountsType: string = 'all';
accountTypes: Array<string>;
+ tokenSymbol: string;
@ViewChild(MatPaginator) paginator: MatPaginator;
@ViewChild(MatSort) sort: MatSort;
@@ -913,11 +956,13 @@ export class AccountsComponent implements OnInit {
constructor(
private userService: UserService,
private loggingService: LoggingService,
- private router: Router
+ private router: Router,
+ private tokenService: TokenService
) {}
async ngOnInit(): Promise<void> {
await this.userService.init();
+ await this.tokenService.init();
try {
// TODO it feels like this should be in the onInit handler
await this.userService.loadAccounts(100);
@@ -934,6 +979,11 @@ export class AccountsComponent implements OnInit {
.getAccountTypes()
.pipe(first())
.subscribe((res) => (this.accountTypes = res));
+ this.tokenService.load.subscribe(async (status: boolean) => {
+ if (status) {
+ this.tokenSymbol = await this.tokenService.getTokenSymbol();
+ }
+ });
}
doFilter(value: string): void {
@@ -1064,7 +1114,9 @@ export class AccountsComponent implements OnInit {
<ng-container matColumnDef="balance">
<mat-header-cell *matHeaderCellDef mat-sort-header> BALANCE </mat-header-cell>
- <mat-cell *matCellDef="let user"> {{ user?.balance | tokenRatio }} </mat-cell>
+ <mat-cell *matCellDef="let user">
+ {{ user?.balance | tokenRatio }} {{ tokenSymbol | uppercase }}
+ </mat-cell>
</ng-container>
<ng-container matColumnDef="location">
@@ -1129,7 +1181,7 @@ export class AccountsComponent implements OnInit {