|  |  | @ -26,8 +26,14 @@ export class AccountsTableComponent implements OnChanges, OnDestroy, OnInit { | 
			
		
	
		
			
				
					|  |  |  |   @Input() accounts: AccountModel[]; | 
			
		
	
		
			
				
					|  |  |  |   @Input() baseCurrency: string; | 
			
		
	
		
			
				
					|  |  |  |   @Input() deviceType: string; | 
			
		
	
		
			
				
					|  |  |  |   @Input() hasPermissionToOpenDetails = true; | 
			
		
	
		
			
				
					|  |  |  |   @Input() locale: string; | 
			
		
	
		
			
				
					|  |  |  |   @Input() showActions: boolean; | 
			
		
	
		
			
				
					|  |  |  |   @Input() showBalance = true; | 
			
		
	
		
			
				
					|  |  |  |   @Input() showFooter = true; | 
			
		
	
		
			
				
					|  |  |  |   @Input() showTransactions = true; | 
			
		
	
		
			
				
					|  |  |  |   @Input() showValue = true; | 
			
		
	
		
			
				
					|  |  |  |   @Input() showValueInBaseCurrency = true; | 
			
		
	
		
			
				
					|  |  |  |   @Input() totalBalanceInBaseCurrency: number; | 
			
		
	
		
			
				
					|  |  |  |   @Input() totalValueInBaseCurrency: number; | 
			
		
	
		
			
				
					|  |  |  |   @Input() transactionCount: number; | 
			
		
	
	
		
			
				
					|  |  | @ -51,17 +57,27 @@ export class AccountsTableComponent implements OnChanges, OnDestroy, OnInit { | 
			
		
	
		
			
				
					|  |  |  |   public ngOnInit() {} | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |   public ngOnChanges() { | 
			
		
	
		
			
				
					|  |  |  |     this.displayedColumns = [ | 
			
		
	
		
			
				
					|  |  |  |       'status', | 
			
		
	
		
			
				
					|  |  |  |       'account', | 
			
		
	
		
			
				
					|  |  |  |       'platform', | 
			
		
	
		
			
				
					|  |  |  |       'transactions', | 
			
		
	
		
			
				
					|  |  |  |       'balance', | 
			
		
	
		
			
				
					|  |  |  |       'value', | 
			
		
	
		
			
				
					|  |  |  |       'currency', | 
			
		
	
		
			
				
					|  |  |  |       'valueInBaseCurrency', | 
			
		
	
		
			
				
					|  |  |  |       'comment' | 
			
		
	
		
			
				
					|  |  |  |     ]; | 
			
		
	
		
			
				
					|  |  |  |     this.displayedColumns = ['status', 'account', 'platform']; | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     if (this.showTransactions) { | 
			
		
	
		
			
				
					|  |  |  |       this.displayedColumns.push('transactions'); | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     if (this.showBalance) { | 
			
		
	
		
			
				
					|  |  |  |       this.displayedColumns.push('balance'); | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     if (this.showValue) { | 
			
		
	
		
			
				
					|  |  |  |       this.displayedColumns.push('value'); | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     this.displayedColumns.push('currency'); | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     if (this.showValueInBaseCurrency) { | 
			
		
	
		
			
				
					|  |  |  |       this.displayedColumns.push('valueInBaseCurrency'); | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     this.displayedColumns.push('comment'); | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     if (this.showActions) { | 
			
		
	
		
			
				
					|  |  |  |       this.displayedColumns.push('actions'); | 
			
		
	
	
		
			
				
					|  |  | @ -89,9 +105,11 @@ export class AccountsTableComponent implements OnChanges, OnDestroy, OnInit { | 
			
		
	
		
			
				
					|  |  |  |   } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |   public onOpenAccountDetailDialog(accountId: string) { | 
			
		
	
		
			
				
					|  |  |  |     this.router.navigate([], { | 
			
		
	
		
			
				
					|  |  |  |       queryParams: { accountId, accountDetailDialog: true } | 
			
		
	
		
			
				
					|  |  |  |     }); | 
			
		
	
		
			
				
					|  |  |  |     if (this.hasPermissionToOpenDetails) { | 
			
		
	
		
			
				
					|  |  |  |       this.router.navigate([], { | 
			
		
	
		
			
				
					|  |  |  |         queryParams: { accountId, accountDetailDialog: true } | 
			
		
	
		
			
				
					|  |  |  |       }); | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |   } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |   public onOpenComment(aComment: string) { | 
			
		
	
	
		
			
				
					|  |  | 
 |