diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 1f9a59c1ce07abaa5aefac5fc4f6ee2479920556..f00fbf894d48f448e264323ce6d1b6b3ec4ee91d 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -58,6 +58,7 @@ export class AppComponent implements OnInit { .subscribe(courseDetails => { this.dialog.open(CourseDetailsDialogComponent, { data: { courseDetails: courseDetails }, + closeOnNavigation: true, }); }); } diff --git a/src/app/core/navigation/navigation.component.ts b/src/app/core/navigation/navigation.component.ts index caac258e142bf49e65171f0a96e944612f7f308f..7fad9c30231bdbc51270b4be42eca4577f60d8f3 100644 --- a/src/app/core/navigation/navigation.component.ts +++ b/src/app/core/navigation/navigation.component.ts @@ -13,6 +13,8 @@ export class NavigationComponent { constructor(public dialog: MatDialog) {} public onFeedbackClick() { - this.dialog.open(FeedbackDialogComponent); + this.dialog.open(FeedbackDialogComponent, { + closeOnNavigation: true, + }); } } diff --git a/src/app/degree-planner/shared/course-item/course-item.component.ts b/src/app/degree-planner/shared/course-item/course-item.component.ts index 27fd3b2016c8b3da31c47b56ea528a689e3cc0be..18fe4f90401a15ba1b73cf87cf2f157c7d9c2182 100644 --- a/src/app/degree-planner/shared/course-item/course-item.component.ts +++ b/src/app/degree-planner/shared/course-item/course-item.component.ts @@ -323,6 +323,7 @@ export class CourseItemComponent implements OnInit { width: '80%', panelClass: this.mobileView.matches ? 'dialog-fullscreen' : '', data: { courseDetails: courseDetails, courseType: this.type }, + closeOnNavigation: true, }); }); } diff --git a/src/app/degree-planner/term-container/term-container.component.ts b/src/app/degree-planner/term-container/term-container.component.ts index 5fa568dbddf7c6869994bb08505cc901ba9db605..093521099e299bdc0c65dd7ca5c02e14099c8a4c 100644 --- a/src/app/degree-planner/term-container/term-container.component.ts +++ b/src/app/degree-planner/term-container/term-container.component.ts @@ -150,6 +150,7 @@ export class TermContainerComponent implements OnInit, OnDestroy { termName: curr.termCode.termName, maxCredits: maxAllowedCredits, }, + closeOnNavigation: true, }); }); } @@ -192,7 +193,7 @@ export class TermContainerComponent implements OnInit, OnDestroy { noteId: note.id, } : { termCode, hasExistingNote: false }; - this.dialog.open(NotesDialogComponent, { data }); + this.dialog.open(NotesDialogComponent, { data, closeOnNavigation: true }); } }