|
@ -59,8 +59,8 @@ export class AccountsPageComponent implements OnDestroy, OnInit { |
|
|
this.openCreateAccountDialog(); |
|
|
this.openCreateAccountDialog(); |
|
|
} else if (params['editDialog']) { |
|
|
} else if (params['editDialog']) { |
|
|
if (this.accounts) { |
|
|
if (this.accounts) { |
|
|
const account = this.accounts.find((account) => { |
|
|
const account = this.accounts.find(({ id }) => { |
|
|
return account.id === params['accountId']; |
|
|
return id === params['accountId']; |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
this.openUpdateAccountDialog(account); |
|
|
this.openUpdateAccountDialog(account); |
|
@ -155,6 +155,7 @@ export class AccountsPageComponent implements OnDestroy, OnInit { |
|
|
balance, |
|
|
balance, |
|
|
currency, |
|
|
currency, |
|
|
id, |
|
|
id, |
|
|
|
|
|
isExcluded, |
|
|
name, |
|
|
name, |
|
|
platformId |
|
|
platformId |
|
|
}: AccountModel): void { |
|
|
}: AccountModel): void { |
|
@ -165,6 +166,7 @@ export class AccountsPageComponent implements OnDestroy, OnInit { |
|
|
balance, |
|
|
balance, |
|
|
currency, |
|
|
currency, |
|
|
id, |
|
|
id, |
|
|
|
|
|
isExcluded, |
|
|
name, |
|
|
name, |
|
|
platformId |
|
|
platformId |
|
|
} |
|
|
} |
|
@ -231,6 +233,7 @@ export class AccountsPageComponent implements OnDestroy, OnInit { |
|
|
accountType: AccountType.SECURITIES, |
|
|
accountType: AccountType.SECURITIES, |
|
|
balance: 0, |
|
|
balance: 0, |
|
|
currency: this.user?.settings?.baseCurrency, |
|
|
currency: this.user?.settings?.baseCurrency, |
|
|
|
|
|
isExcluded: false, |
|
|
name: null, |
|
|
name: null, |
|
|
platformId: null |
|
|
platformId: null |
|
|
} |
|
|
} |
|
|