fix: close create course modal #386
This commit is contained in:
@@ -45,7 +45,7 @@
|
|||||||
];
|
];
|
||||||
let type = options[0].type;
|
let type = options[0].type;
|
||||||
|
|
||||||
function onClose(redirectTo = $page.url.pathname) {
|
function onClose(redirectTo) {
|
||||||
goto(redirectTo);
|
goto(redirectTo);
|
||||||
|
|
||||||
createCourseModal.update(() => ({
|
createCourseModal.update(() => ({
|
||||||
@@ -139,7 +139,7 @@
|
|||||||
</svelte:head>
|
</svelte:head>
|
||||||
|
|
||||||
<Modal
|
<Modal
|
||||||
{onClose}
|
onClose={() => onClose($page.url.pathname)}
|
||||||
bind:open
|
bind:open
|
||||||
width="w-4/5 md:w-2/5 md:min-w-[600px]"
|
width="w-4/5 md:w-2/5 md:min-w-[600px]"
|
||||||
modalHeading={$t('courses.new_course_modal.heading')}
|
modalHeading={$t('courses.new_course_modal.heading')}
|
||||||
|
|||||||
Reference in New Issue
Block a user