|
|
|
@ -57,14 +57,9 @@ export class PositionsTableComponent implements OnChanges, OnDestroy, OnInit {
|
|
|
|
|
this.routeQueryParams = route.queryParams
|
|
|
|
|
.pipe(takeUntil(this.unsubscribeSubject))
|
|
|
|
|
.subscribe((params) => {
|
|
|
|
|
if (
|
|
|
|
|
params['positionDetailDialog'] &&
|
|
|
|
|
params['symbol'] &&
|
|
|
|
|
params['title']
|
|
|
|
|
) {
|
|
|
|
|
if (params['positionDetailDialog'] && params['symbol']) {
|
|
|
|
|
this.openPositionDialog({
|
|
|
|
|
symbol: params['symbol'],
|
|
|
|
|
title: params['title']
|
|
|
|
|
symbol: params['symbol']
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
@ -96,15 +91,9 @@ export class PositionsTableComponent implements OnChanges, OnDestroy, OnInit {
|
|
|
|
|
this.dataSource.filter = filterValue.trim().toLowerCase();
|
|
|
|
|
}*/
|
|
|
|
|
|
|
|
|
|
public onOpenPositionDialog({
|
|
|
|
|
symbol,
|
|
|
|
|
title
|
|
|
|
|
}: {
|
|
|
|
|
symbol: string;
|
|
|
|
|
title: string;
|
|
|
|
|
}): void {
|
|
|
|
|
public onOpenPositionDialog({ symbol }: { symbol: string }): void {
|
|
|
|
|
this.router.navigate([], {
|
|
|
|
|
queryParams: { positionDetailDialog: true, symbol, title }
|
|
|
|
|
queryParams: { positionDetailDialog: true, symbol }
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -116,18 +105,11 @@ export class PositionsTableComponent implements OnChanges, OnDestroy, OnInit {
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public openPositionDialog({
|
|
|
|
|
symbol,
|
|
|
|
|
title
|
|
|
|
|
}: {
|
|
|
|
|
symbol: string;
|
|
|
|
|
title: string;
|
|
|
|
|
}): void {
|
|
|
|
|
public openPositionDialog({ symbol }: { symbol: string }): void {
|
|
|
|
|
const dialogRef = this.dialog.open(PositionDetailDialog, {
|
|
|
|
|
autoFocus: false,
|
|
|
|
|
data: {
|
|
|
|
|
symbol,
|
|
|
|
|
title,
|
|
|
|
|
baseCurrency: this.baseCurrency,
|
|
|
|
|
deviceType: this.deviceType,
|
|
|
|
|
locale: this.locale
|
|
|
|
|