|
|
|
@ -206,23 +206,18 @@ export class GfAdminMarketDataComponent |
|
|
|
this.displayedColumns.push('comment'); |
|
|
|
this.displayedColumns.push('actions'); |
|
|
|
|
|
|
|
if (this.route.snapshot.routeConfig.path === 'market-data/create') { |
|
|
|
this.openCreateAssetProfileDialog(); |
|
|
|
} else { |
|
|
|
this.route.paramMap |
|
|
|
.pipe(takeUntil(this.unsubscribeSubject)) |
|
|
|
.subscribe((paramMap) => { |
|
|
|
const dataSource = paramMap.get('dataSource') as DataSource; |
|
|
|
const symbol = paramMap.get('symbol'); |
|
|
|
|
|
|
|
if (dataSource && symbol) { |
|
|
|
this.openAssetProfileDialog({ |
|
|
|
dataSource, |
|
|
|
symbol |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
this.route.paramMap |
|
|
|
.pipe(takeUntil(this.unsubscribeSubject)) |
|
|
|
.subscribe((paramMap) => { |
|
|
|
const dataSource = paramMap.get('dataSource') as DataSource; |
|
|
|
const symbol = paramMap.get('symbol'); |
|
|
|
|
|
|
|
if (dataSource && symbol) { |
|
|
|
this.openAssetProfileDialog({ dataSource, symbol }); |
|
|
|
} else if (this.route.snapshot.routeConfig.path.endsWith('/create')) { |
|
|
|
this.openCreateAssetProfileDialog(); |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
this.userService.stateChanged |
|
|
|
.pipe(takeUntil(this.unsubscribeSubject)) |
|
|
|
@ -234,14 +229,14 @@ export class GfAdminMarketDataComponent |
|
|
|
this.user.settings.locale |
|
|
|
); |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
this.filters$ |
|
|
|
.pipe(distinctUntilChanged(), takeUntil(this.unsubscribeSubject)) |
|
|
|
.subscribe((filters) => { |
|
|
|
this.activeFilters = filters; |
|
|
|
this.filters$ |
|
|
|
.pipe(distinctUntilChanged(), takeUntil(this.unsubscribeSubject)) |
|
|
|
.subscribe((filters) => { |
|
|
|
this.activeFilters = filters; |
|
|
|
|
|
|
|
this.loadData(); |
|
|
|
this.loadData(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
addIcons({ |
|
|
|
@ -278,6 +273,13 @@ export class GfAdminMarketDataComponent |
|
|
|
this.selection = new SelectionModel(true); |
|
|
|
} |
|
|
|
|
|
|
|
public getRouterLinkToAdminControlMarketData({ |
|
|
|
dataSource, |
|
|
|
symbol |
|
|
|
}: AssetProfileIdentifier) { |
|
|
|
return [...this.routerLinkAdminControlMarketData, dataSource, symbol]; |
|
|
|
} |
|
|
|
|
|
|
|
public onChangePage(page: PageEvent) { |
|
|
|
this.loadData({ |
|
|
|
pageIndex: page.pageIndex, |
|
|
|
@ -353,10 +355,6 @@ export class GfAdminMarketDataComponent |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
public getRouterLinkToAdminControlMarketData(dataSource, symbol) { |
|
|
|
return [...this.routerLinkAdminControlMarketData, dataSource, symbol]; |
|
|
|
} |
|
|
|
|
|
|
|
public ngOnDestroy() { |
|
|
|
this.unsubscribeSubject.next(); |
|
|
|
this.unsubscribeSubject.complete(); |
|
|
|
|