mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-26 07:38:33 -06:00
halfway through localcourse transition
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user