From 5a8154710836072a5508de9e62a74521df496b5f Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Tue, 8 Aug 2017 23:37:45 +0200 Subject: [PATCH] Fix modal size. --- src/accounts/accountList.component.ts | 4 +++- src/accounts/accountRow.component.ts | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/accounts/accountList.component.ts b/src/accounts/accountList.component.ts index 9fc510d..a9d48c8 100644 --- a/src/accounts/accountList.component.ts +++ b/src/accounts/accountList.component.ts @@ -70,7 +70,9 @@ export class AccountListComponent implements OnInit { * Add an empty account. */ add() { - const modal = this.ngbModal.open(AccountEditModalComponent); + const modal = this.ngbModal.open(AccountEditModalComponent, { + size: 'lg' + }); modal.componentInstance.account = new Account(); diff --git a/src/accounts/accountRow.component.ts b/src/accounts/accountRow.component.ts index 0ef93a6..051e791 100644 --- a/src/accounts/accountRow.component.ts +++ b/src/accounts/accountRow.component.ts @@ -115,7 +115,9 @@ export class AccountRowComponent implements OnInit { }; confirmDelete() { - const modal = this.ngbModal.open(AccountDeleteModalComponent); + const modal = this.ngbModal.open(AccountDeleteModalComponent, { + size: 'lg' + }); modal.componentInstance.account = this.account;