|
@ -141,7 +141,6 @@ export class TransactionsPageComponent implements OnInit { |
|
|
}: OrderModel): void { |
|
|
}: OrderModel): void { |
|
|
const dialogRef = this.dialog.open(CreateOrUpdateTransactionDialog, { |
|
|
const dialogRef = this.dialog.open(CreateOrUpdateTransactionDialog, { |
|
|
data: { |
|
|
data: { |
|
|
accounts: this.user.accounts, |
|
|
|
|
|
transaction: { |
|
|
transaction: { |
|
|
accountId, |
|
|
accountId, |
|
|
currency, |
|
|
currency, |
|
@ -153,7 +152,8 @@ export class TransactionsPageComponent implements OnInit { |
|
|
symbol, |
|
|
symbol, |
|
|
type, |
|
|
type, |
|
|
unitPrice |
|
|
unitPrice |
|
|
} |
|
|
}, |
|
|
|
|
|
user: this.user |
|
|
}, |
|
|
}, |
|
|
height: this.deviceType === 'mobile' ? '97.5vh' : '80vh', |
|
|
height: this.deviceType === 'mobile' ? '97.5vh' : '80vh', |
|
|
width: this.deviceType === 'mobile' ? '100vw' : '50rem' |
|
|
width: this.deviceType === 'mobile' ? '100vw' : '50rem' |
|
@ -182,7 +182,6 @@ export class TransactionsPageComponent implements OnInit { |
|
|
private openCreateTransactionDialog(aTransaction?: OrderModel): void { |
|
|
private openCreateTransactionDialog(aTransaction?: OrderModel): void { |
|
|
const dialogRef = this.dialog.open(CreateOrUpdateTransactionDialog, { |
|
|
const dialogRef = this.dialog.open(CreateOrUpdateTransactionDialog, { |
|
|
data: { |
|
|
data: { |
|
|
accounts: this.user?.accounts, |
|
|
|
|
|
transaction: { |
|
|
transaction: { |
|
|
accountId: |
|
|
accountId: |
|
|
aTransaction?.accountId ?? |
|
|
aTransaction?.accountId ?? |
|
@ -197,7 +196,8 @@ export class TransactionsPageComponent implements OnInit { |
|
|
symbol: aTransaction?.symbol ?? null, |
|
|
symbol: aTransaction?.symbol ?? null, |
|
|
type: aTransaction?.type ?? 'BUY', |
|
|
type: aTransaction?.type ?? 'BUY', |
|
|
unitPrice: null |
|
|
unitPrice: null |
|
|
} |
|
|
}, |
|
|
|
|
|
user: this.user |
|
|
}, |
|
|
}, |
|
|
height: this.deviceType === 'mobile' ? '97.5vh' : '80vh', |
|
|
height: this.deviceType === 'mobile' ? '97.5vh' : '80vh', |
|
|
width: this.deviceType === 'mobile' ? '100vw' : '50rem' |
|
|
width: this.deviceType === 'mobile' ? '100vw' : '50rem' |
|
|