diff --git a/src/app/pages/settings/settings.component.ts b/src/app/pages/settings/settings.component.ts
index 2154554..68c1acc 100644
--- a/src/app/pages/settings/settings.component.ts
+++ b/src/app/pages/settings/settings.component.ts
@@ -4,6 +4,7 @@ import {MatPaginator} from '@angular/material/paginator';
import {MatSort} from '@angular/material/sort';
import {AuthService} from '@app/_services';
import {Staff} from '@app/_models/staff';
+import {exportCsv} from '@app/_helpers';
@Component({
selector: 'app-settings',
@@ -36,4 +37,8 @@ export class SettingsComponent implements OnInit {
doFilter(value: string): void {
this.dataSource.filter = value.trim().toLocaleLowerCase();
}
+
+ downloadCsv(): void {
+ exportCsv(this.trustedUsers, 'users');
+ }
}
diff --git a/src/app/pages/tokens/tokens.component.html b/src/app/pages/tokens/tokens.component.html
index 04397b3..486e39a 100644
--- a/src/app/pages/tokens/tokens.component.html
+++ b/src/app/pages/tokens/tokens.component.html
@@ -18,7 +18,10 @@
diff --git a/src/app/pages/tokens/tokens.component.ts b/src/app/pages/tokens/tokens.component.ts
index d25ce51..8676f4f 100644
--- a/src/app/pages/tokens/tokens.component.ts
+++ b/src/app/pages/tokens/tokens.component.ts
@@ -4,6 +4,7 @@ import {MatSort} from '@angular/material/sort';
import {LoggingService, TokenService} from '@app/_services';
import {MatTableDataSource} from '@angular/material/table';
import {Router} from '@angular/router';
+import {exportCsv} from '@app/_helpers';
@Component({
selector: 'app-tokens',
@@ -41,4 +42,8 @@ export class TokensComponent implements OnInit {
async viewToken(token): Promise {
await this.router.navigateByUrl(`/tokens/${token.symbol}`);
}
+
+ downloadCsv(): void {
+ exportCsv(this.tokens, 'tokens');
+ }
}
diff --git a/src/app/pages/transactions/transactions.component.html b/src/app/pages/transactions/transactions.component.html
index 39e04db..fe178b2 100644
--- a/src/app/pages/transactions/transactions.component.html
+++ b/src/app/pages/transactions/transactions.component.html
@@ -36,6 +36,7 @@
RECLAMATION
+
diff --git a/src/app/pages/transactions/transactions.component.ts b/src/app/pages/transactions/transactions.component.ts
index b65c50f..d9a7ce7 100644
--- a/src/app/pages/transactions/transactions.component.ts
+++ b/src/app/pages/transactions/transactions.component.ts
@@ -3,6 +3,7 @@ import {BlockSyncService, TransactionService} from '@app/_services';
import {MatTableDataSource} from '@angular/material/table';
import {MatPaginator} from '@angular/material/paginator';
import {MatSort} from '@angular/material/sort';
+import {exportCsv} from '@app/_helpers';
@Component({
selector: 'app-transactions',
@@ -61,4 +62,8 @@ export class TransactionsComponent implements OnInit, AfterViewInit {
this.transactionDataSource.paginator = this.paginator;
this.transactionDataSource.sort = this.sort;
}
+
+ downloadCsv(): void {
+ exportCsv(this.transactions, 'transactions');
+ }
}