|
@ -7,7 +7,6 @@ import { |
|
|
User |
|
|
User |
|
|
} from '@ghostfolio/common/interfaces'; |
|
|
} from '@ghostfolio/common/interfaces'; |
|
|
import { hasPermission, permissions } from '@ghostfolio/common/permissions'; |
|
|
import { hasPermission, permissions } from '@ghostfolio/common/permissions'; |
|
|
import { BenchmarkTrend } from '@ghostfolio/common/types'; |
|
|
|
|
|
import { GfBenchmarkComponent } from '@ghostfolio/ui/benchmark'; |
|
|
import { GfBenchmarkComponent } from '@ghostfolio/ui/benchmark'; |
|
|
import { GfPremiumIndicatorComponent } from '@ghostfolio/ui/premium-indicator'; |
|
|
import { GfPremiumIndicatorComponent } from '@ghostfolio/ui/premium-indicator'; |
|
|
|
|
|
|
|
@ -137,17 +136,7 @@ export class HomeWatchlistComponent implements OnDestroy, OnInit { |
|
|
.fetchWatchlist() |
|
|
.fetchWatchlist() |
|
|
.pipe(takeUntil(this.unsubscribeSubject)) |
|
|
.pipe(takeUntil(this.unsubscribeSubject)) |
|
|
.subscribe(({ watchlist }) => { |
|
|
.subscribe(({ watchlist }) => { |
|
|
this.watchlist = watchlist.map( |
|
|
this.watchlist = watchlist; |
|
|
({ dataSource, marketCondition, name, performances, symbol }) => ({ |
|
|
|
|
|
dataSource, |
|
|
|
|
|
marketCondition, |
|
|
|
|
|
name, |
|
|
|
|
|
performances, |
|
|
|
|
|
symbol, |
|
|
|
|
|
trend50d: 'UNKNOWN' as BenchmarkTrend, |
|
|
|
|
|
trend200d: 'UNKNOWN' as BenchmarkTrend |
|
|
|
|
|
}) |
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
this.changeDetectorRef.markForCheck(); |
|
|
this.changeDetectorRef.markForCheck(); |
|
|
}); |
|
|
}); |
|
|