From fd0df50d14a72d5548a2f45931c891d8086dc2c6 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Fri, 11 Aug 2017 22:24:09 +0200 Subject: [PATCH] Fix schedule edit modal size. --- src/scheduler/scheduleList.component.ts | 4 +++- src/scheduler/scheduleRow.component.ts | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/scheduler/scheduleList.component.ts b/src/scheduler/scheduleList.component.ts index 96a19b1..3a1ba83 100644 --- a/src/scheduler/scheduleList.component.ts +++ b/src/scheduler/scheduleList.component.ts @@ -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; diff --git a/src/scheduler/scheduleRow.component.ts b/src/scheduler/scheduleRow.component.ts index 4d67edb..b26cfef 100644 --- a/src/scheduler/scheduleRow.component.ts +++ b/src/scheduler/scheduleRow.component.ts @@ -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;