diff --git a/src/accounts/accountList.component.ts b/src/accounts/accountList.component.ts index a5c350b..5522195 100644 --- a/src/accounts/accountList.component.ts +++ b/src/accounts/accountList.component.ts @@ -160,7 +160,17 @@ export class AccountListComponent { * Add an empty account. */ add() { - return this.modify(new Account()); + const modal = this.NgbModal.open(AccountEditModalComponent, { + windowClass: 'in' + }); + + modal.componentInstance.account = new Account(); + + modal.result.then((account: Account) => { + this.Logger.log("Modal closed => save account", account); + this.save(account); + }, (reason) => function(reason) { + }); }; /*