Fix modal size.

This commit is contained in:
Alexis Lahouze 2017-08-08 23:37:45 +02:00
parent e23adb4316
commit 5a81547108
2 changed files with 6 additions and 2 deletions

View File

@ -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();

View File

@ -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;