|
|
@ -48,6 +48,7 @@ import { addIcons } from 'ionicons'; |
|
|
import { |
|
|
import { |
|
|
albumsOutline, |
|
|
albumsOutline, |
|
|
cashOutline, |
|
|
cashOutline, |
|
|
|
|
|
readerOutline, |
|
|
swapVerticalOutline |
|
|
swapVerticalOutline |
|
|
} from 'ionicons/icons'; |
|
|
} from 'ionicons/icons'; |
|
|
import { isNumber } from 'lodash'; |
|
|
import { isNumber } from 'lodash'; |
|
|
@ -97,7 +98,6 @@ export class GfAccountDetailDialogComponent implements OnInit { |
|
|
protected holdings: PortfolioPosition[]; |
|
|
protected holdings: PortfolioPosition[]; |
|
|
protected interestInBaseCurrency: number; |
|
|
protected interestInBaseCurrency: number; |
|
|
protected interestInBaseCurrencyPrecision = 2; |
|
|
protected interestInBaseCurrencyPrecision = 2; |
|
|
protected isLoadingActivities: boolean; |
|
|
|
|
|
protected isLoadingChart: boolean; |
|
|
protected isLoadingChart: boolean; |
|
|
protected name: string | null; |
|
|
protected name: string | null; |
|
|
protected pageIndex = 0; |
|
|
protected pageIndex = 0; |
|
|
@ -148,7 +148,12 @@ export class GfAccountDetailDialogComponent implements OnInit { |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
addIcons({ albumsOutline, cashOutline, swapVerticalOutline }); |
|
|
addIcons({ |
|
|
|
|
|
albumsOutline, |
|
|
|
|
|
cashOutline, |
|
|
|
|
|
readerOutline, |
|
|
|
|
|
swapVerticalOutline |
|
|
|
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public ngOnInit() { |
|
|
public ngOnInit() { |
|
|
@ -288,8 +293,6 @@ export class GfAccountDetailDialogComponent implements OnInit { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private fetchActivities() { |
|
|
private fetchActivities() { |
|
|
this.isLoadingActivities = true; |
|
|
|
|
|
|
|
|
|
|
|
this.dataService |
|
|
this.dataService |
|
|
.fetchActivities({ |
|
|
.fetchActivities({ |
|
|
filters: [{ id: this.data.accountId, type: 'ACCOUNT' }], |
|
|
filters: [{ id: this.data.accountId, type: 'ACCOUNT' }], |
|
|
@ -303,8 +306,6 @@ export class GfAccountDetailDialogComponent implements OnInit { |
|
|
this.dataSource = new MatTableDataSource(activities); |
|
|
this.dataSource = new MatTableDataSource(activities); |
|
|
this.totalItems = count; |
|
|
this.totalItems = count; |
|
|
|
|
|
|
|
|
this.isLoadingActivities = false; |
|
|
|
|
|
|
|
|
|
|
|
this.changeDetectorRef.markForCheck(); |
|
|
this.changeDetectorRef.markForCheck(); |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
|