Fix account edit dialog size.

This commit is contained in:
Alexis Lahouze 2017-08-11 22:21:36 +02:00
parent 49716421a1
commit 012e5a16fa
2 changed files with 8 additions and 8 deletions

View File

@ -11,11 +11,11 @@ import { Account } from './account';
<form novalidate
(keyup.enter)="submit()" [formGroup]="form">
<div class="form-group row">
<label class="col-sm-5 control-label" for="name">
<label class="col-sm-4 control-label" for="name">
Account name
</label>
<div class="col-sm-7"
<div class="col-sm-8"
[class.has-danger]="name.errors">
<input class="form-control"
id="name" formControlName="name"
@ -28,11 +28,11 @@ import { Account } from './account';
</div>
<div class="form-group row">
<label class="col-sm-5 control-label" for="authorized-overdraft">
<label class="col-sm-4 control-label" for="authorized-overdraft">
Authorized overdraft
</label>
<div class="col-sm-7"
<div class="col-sm-8"
[class.has-danger]="authorizedOverdraft.errors">
<div class="input-group">
<input class="form-control"

View File

@ -115,9 +115,7 @@ export class AccountRowComponent implements OnInit {
};
confirmDelete() {
const modal = this.ngbModal.open(AccountDeleteModalComponent, {
size: 'lg'
});
const modal = this.ngbModal.open(AccountDeleteModalComponent);
modal.componentInstance.account = this.account;
@ -149,7 +147,9 @@ export class AccountRowComponent implements OnInit {
* Open the popup to modify the account, save it on confirm.
*/
modify() {
const modal = this.ngbModal.open(AccountEditModalComponent);
const modal = this.ngbModal.open(AccountEditModalComponent, {
size: 'lg'
});
modal.componentInstance.account = this.account;