before I dive too much more into adding pages in canvas

This commit is contained in:
2024-01-12 15:57:35 -07:00
parent 9f19704724
commit bca8497255
17 changed files with 472 additions and 60 deletions

View File

@@ -82,13 +82,13 @@ public class PageEditorContext(
public async Task AddPageToCanvas()
{
// logger.Log("started to add quiz to canvas");
// if (Quiz == null)
// {
// logger.Log("cannot add null quiz to canvas");
// return;
// }
// await planner.LoadCanvasData();
logger.Log("started to add page to canvas");
if (Page == null)
{
logger.Log("cannot add null page to canvas");
return;
}
await planner.LoadCanvasData();
// if (planner.CanvasQuizzes == null)
// {
// logger.Log("cannot add quiz to canvas, failed to retrieve current quizzes");
@@ -128,6 +128,11 @@ public class PageEditorContext(
// logger.Log($"finished adding quiz {Quiz.Name} to canvas");
}
public async Task UpdateInCanvas(string pageId)
{
}
private static LocalModule getCurrentLocalModule(LocalCoursePage page, LocalCourse course)