|
|
@ -2,7 +2,6 @@ import { UserService } from '@ghostfolio/client/services/user/user.service'; |
|
|
import { |
|
|
import { |
|
|
DEFAULT_COLOR_SCHEME, |
|
|
DEFAULT_COLOR_SCHEME, |
|
|
DEFAULT_PAGE_SIZE, |
|
|
DEFAULT_PAGE_SIZE, |
|
|
ghostfolioScraperApiSymbolPrefix, |
|
|
|
|
|
locale |
|
|
locale |
|
|
} from '@ghostfolio/common/config'; |
|
|
} from '@ghostfolio/common/config'; |
|
|
import { getDateFormatString } from '@ghostfolio/common/helper'; |
|
|
import { getDateFormatString } from '@ghostfolio/common/helper'; |
|
|
@ -147,13 +146,10 @@ export class GfAdminMarketDataComponent implements AfterViewInit, OnInit { |
|
|
type: 'PRESET_ID' as Filter['type'] |
|
|
type: 'PRESET_ID' as Filter['type'] |
|
|
} |
|
|
} |
|
|
]; |
|
|
]; |
|
|
public currentDataSource: DataSource; |
|
|
|
|
|
public currentSymbol: string; |
|
|
|
|
|
protected dataSource = new MatTableDataSource<AdminMarketDataItem>(); |
|
|
protected dataSource = new MatTableDataSource<AdminMarketDataItem>(); |
|
|
protected defaultDateFormat: string; |
|
|
protected defaultDateFormat: string; |
|
|
protected displayedColumns: string[] = []; |
|
|
protected displayedColumns: string[] = []; |
|
|
protected filters$ = new Subject<Filter[]>(); |
|
|
protected filters$ = new Subject<Filter[]>(); |
|
|
public ghostfolioScraperApiSymbolPrefix = ghostfolioScraperApiSymbolPrefix; |
|
|
|
|
|
protected isLoading = true; |
|
|
protected isLoading = true; |
|
|
protected isUUID = isUUID; |
|
|
protected isUUID = isUUID; |
|
|
protected pageSize = DEFAULT_PAGE_SIZE; |
|
|
protected pageSize = DEFAULT_PAGE_SIZE; |
|
|
@ -332,23 +328,6 @@ export class GfAdminMarketDataComponent implements AfterViewInit, OnInit { |
|
|
.subscribe(); |
|
|
.subscribe(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
protected onGatherProfileDataBySymbol({ |
|
|
|
|
|
dataSource, |
|
|
|
|
|
symbol |
|
|
|
|
|
}: AssetProfileIdentifier) { |
|
|
|
|
|
this.adminService |
|
|
|
|
|
.gatherProfileDataBySymbol({ dataSource, symbol }) |
|
|
|
|
|
.pipe(takeUntilDestroyed(this.destroyRef)) |
|
|
|
|
|
.subscribe(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected onGatherSymbol({ dataSource, symbol }: AssetProfileIdentifier) { |
|
|
|
|
|
this.adminService |
|
|
|
|
|
.gatherSymbol({ dataSource, symbol }) |
|
|
|
|
|
.pipe(takeUntilDestroyed(this.destroyRef)) |
|
|
|
|
|
.subscribe(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected onOpenAssetProfileDialog({ |
|
|
protected onOpenAssetProfileDialog({ |
|
|
dataSource, |
|
|
dataSource, |
|
|
symbol |
|
|
symbol |
|
|
|