diff --git a/src/accounts/accountRow.component.ts b/src/accounts/accountRow.component.ts index 4e224d3..c78516c 100644 --- a/src/accounts/accountRow.component.ts +++ b/src/accounts/accountRow.component.ts @@ -67,14 +67,14 @@ export class AccountRowComponent implements OnInit { @Input('account-row') account: Account; @Output() needsReload: EventEmitter = new EventEmitter(); - accountBalances: AccountBalances; + private accountBalances: AccountBalances; constructor( private accountService: AccountService, private accountBalancesService: AccountBalancesService, private toastrService: ToastrService, private logger: Logger, - private modal: NgbModal + private ngbModal: NgbModal ) { this.logger.log("AccountRowComponent constructor"); } @@ -115,9 +115,7 @@ export class AccountRowComponent implements OnInit { }; confirmDelete() { - const modal = this.modal.open(AccountDeleteModalComponent, { - windowClass: 'in' - }); + const modal = this.ngbModal.open(AccountDeleteModalComponent); modal.componentInstance.account = this.account; @@ -149,9 +147,7 @@ export class AccountRowComponent implements OnInit { * Open the popup to modify the account, save it on confirm. */ modify() { - const modal = this.modal.open(AccountEditModalComponent, { - windowClass: 'in' - }); + const modal = this.ngbModal.open(AccountEditModalComponent); modal.componentInstance.account = this.account;