got debounced saving working. some of the assignment saving logic is real time

This commit is contained in:
2023-08-11 15:19:15 -06:00
parent ea087faa1a
commit b1d5567902
9 changed files with 170 additions and 130 deletions

View File

@@ -3,6 +3,7 @@
@inject DragContainer dragContainer
@inject CoursePlanner planner
@inject AssignmentEditorContext assignmentContext
@code {
[Parameter]
@@ -128,7 +129,7 @@
draggable="true"
@ondragstart="HandleDragStart"
@ondragend="HandleDragEnd"
@onclick="@(() => showUpdateForm = true)"
@onclick="@(() => assignmentContext.Assignment = Assignment)"
role="button"
>
<div class="card">
@@ -249,9 +250,3 @@
</div>
</div>
</div>
<AssignmentForm
Assignment="Assignment"
Show="showUpdateForm"
OnHide="@(() => showUpdateForm = false)"
/>