|  |  | @ -1,12 +1,10 @@ | 
			
		
	
		
			
				
					|  |  |  | import { | 
			
		
	
		
			
				
					|  |  |  |   ChangeDetectionStrategy, | 
			
		
	
		
			
				
					|  |  |  |   Component, | 
			
		
	
		
			
				
					|  |  |  |   EventEmitter, | 
			
		
	
		
			
				
					|  |  |  |   Input, | 
			
		
	
		
			
				
					|  |  |  |   OnChanges, | 
			
		
	
		
			
				
					|  |  |  |   OnDestroy, | 
			
		
	
		
			
				
					|  |  |  |   OnInit, | 
			
		
	
		
			
				
					|  |  |  |   Output, | 
			
		
	
		
			
				
					|  |  |  |   ViewChild | 
			
		
	
		
			
				
					|  |  |  | } from '@angular/core'; | 
			
		
	
		
			
				
					|  |  |  | import { MatPaginator } from '@angular/material/paginator'; | 
			
		
	
	
		
			
				
					|  |  | @ -14,7 +12,7 @@ import { MatSort } from '@angular/material/sort'; | 
			
		
	
		
			
				
					|  |  |  | import { MatTableDataSource } from '@angular/material/table'; | 
			
		
	
		
			
				
					|  |  |  | import { Router } from '@angular/router'; | 
			
		
	
		
			
				
					|  |  |  | import { PortfolioPosition, UniqueAsset } from '@ghostfolio/common/interfaces'; | 
			
		
	
		
			
				
					|  |  |  | import { AssetClass, Order as OrderModel } from '@prisma/client'; | 
			
		
	
		
			
				
					|  |  |  | import { AssetClass } from '@prisma/client'; | 
			
		
	
		
			
				
					|  |  |  | import { Subject, Subscription } from 'rxjs'; | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | @Component({ | 
			
		
	
	
		
			
				
					|  |  | @ -28,12 +26,9 @@ export class HoldingsTableComponent implements OnChanges, OnDestroy, OnInit { | 
			
		
	
		
			
				
					|  |  |  |   @Input() deviceType: string; | 
			
		
	
		
			
				
					|  |  |  |   @Input() hasPermissionToCreateActivity: boolean; | 
			
		
	
		
			
				
					|  |  |  |   @Input() hasPermissionToShowValues = true; | 
			
		
	
		
			
				
					|  |  |  |   @Input() holdings: PortfolioPosition[]; | 
			
		
	
		
			
				
					|  |  |  |   @Input() locale: string; | 
			
		
	
		
			
				
					|  |  |  |   @Input() pageSize = Number.MAX_SAFE_INTEGER; | 
			
		
	
		
			
				
					|  |  |  |   @Input() positions: PortfolioPosition[]; | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |   @Output() transactionDeleted = new EventEmitter<string>(); | 
			
		
	
		
			
				
					|  |  |  |   @Output() transactionToUpdate = new EventEmitter<OrderModel>(); | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |   @ViewChild(MatPaginator) paginator: MatPaginator; | 
			
		
	
		
			
				
					|  |  |  |   @ViewChild(MatSort) sort: MatSort; | 
			
		
	
	
		
			
				
					|  |  | @ -63,8 +58,8 @@ export class HoldingsTableComponent implements OnChanges, OnDestroy, OnInit { | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     this.isLoading = true; | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     if (this.positions) { | 
			
		
	
		
			
				
					|  |  |  |       this.dataSource = new MatTableDataSource(this.positions); | 
			
		
	
		
			
				
					|  |  |  |     if (this.holdings) { | 
			
		
	
		
			
				
					|  |  |  |       this.dataSource = new MatTableDataSource(this.holdings); | 
			
		
	
		
			
				
					|  |  |  |       this.dataSource.paginator = this.paginator; | 
			
		
	
		
			
				
					|  |  |  |       this.dataSource.sort = this.sort; | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  | 
 |