Add property to component

This commit is contained in:
Ben Goldsworthy 2020-10-18 14:03:23 +01:00
parent 49e5951747
commit a19ddcb1b7

View file

@ -29,6 +29,7 @@ export class TransactionLogComponent implements OnInit {
transactionFormStatusSuccess: string; transactionFormStatusSuccess: string;
transactionFormStatusError = 'Error received, please try again.'; transactionFormStatusError = 'Error received, please try again.';
updatedTime: string; updatedTime: string;
accountType: any;
showMeta = false; showMeta = false;
public paginateConfig: PaginationInstance = { public paginateConfig: PaginationInstance = {
@ -58,6 +59,7 @@ export class TransactionLogComponent implements OnInit {
ngOnInit(): void { ngOnInit(): void {
this.loadTransactions(1); this.loadTransactions(1);
this.accountType = localStorage.getItem('usertype');
} }
loadTransactions(logPage: number) { loadTransactions(logPage: number) {