Skip to content
Snippets Groups Projects
Commit 0f1c4d71 authored by Scott Berg's avatar Scott Berg Committed by Scott Berg
Browse files

Add closeOnNavigation to all dialogs.

parent fedf0bf8
No related branches found
No related tags found
No related merge requests found
Pipeline #37771 passed
......@@ -58,6 +58,7 @@ export class AppComponent implements OnInit {
.subscribe(courseDetails => {
this.dialog.open(CourseDetailsDialogComponent, {
data: { courseDetails: courseDetails },
closeOnNavigation: true,
});
});
}
......
......@@ -13,6 +13,8 @@ export class NavigationComponent {
constructor(public dialog: MatDialog) {}
public onFeedbackClick() {
this.dialog.open(FeedbackDialogComponent);
this.dialog.open(FeedbackDialogComponent, {
closeOnNavigation: true,
});
}
}
......@@ -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,
});
});
}
......
......@@ -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 });
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment