Fix schedule edit modal size.

This commit is contained in:
Alexis Lahouze 2017-08-11 22:24:09 +02:00
parent 8973c1fe9a
commit fd0df50d14
2 changed files with 6 additions and 2 deletions

View File

@ -73,7 +73,9 @@ export class ScheduleListComponent implements OnInit {
var schedule = new Schedule();
schedule.account_id = this.accountId;
const modal = this.ngbModal.open(ScheduleEditModalComponent);
const modal = this.ngbModal.open(ScheduleEditModalComponent, {
size: 'lg'
});
modal.componentInstance.schedule = schedule;

View File

@ -101,7 +101,9 @@ export class ScheduleRowComponent {
}
modify() {
const modal = this.ngbModal.open(ScheduleEditModalComponent);
const modal = this.ngbModal.open(ScheduleEditModalComponent, {
size: 'lg'
});
modal.componentInstance.schedule = this.schedule;