halfway through localcourse transition

This commit is contained in:
2023-09-22 12:40:40 -06:00
parent c8ad67fd0b
commit e53222e35d
18 changed files with 152 additions and 50 deletions

View File

@@ -79,9 +79,9 @@
{
Modules = newModules
};
if (assignment.CanvasId != null && planner.LocalCourse.CanvasId != null)
if (assignment.CanvasId != null && planner.LocalCourse.Settings.CanvasId != null)
{
ulong courseId = planner.LocalCourse.CanvasId ?? throw new Exception("cannot delete if no course id");
ulong courseId = planner.LocalCourse.Settings.CanvasId ?? throw new Exception("cannot delete if no course id");
await canvas.Assignments.Delete(courseId, assignment);
}
}
@@ -190,7 +190,7 @@
class="btn btn-primary mx-2"
@onclick="@(() => {
assignmentContext.Assignment = null;
Navigation.NavigateTo("/course/" + planner.LocalCourse?.Name);
Navigation.NavigateTo("/course/" + planner.LocalCourse?.Settings.Name);
})"
>
Done