added click editing to calendar vue

This commit is contained in:
2023-08-04 11:33:42 -06:00
parent 9d96b7f23f
commit 097bd635a2
10 changed files with 14 additions and 8 deletions

View File

@@ -1,3 +1,4 @@
@using Management.Web.Shared.Components.AssignmentForm
@inject AssignmentDragContainer dragContainer
@inject CoursePlanner planner
@@ -18,6 +19,7 @@
{
planner.StateHasChanged -= reload;
}
private bool showUpdateForm = false;
private void dropOnDate(DateTime dropDate)
{
@@ -112,7 +114,14 @@
draggable="true"
@ondragstart="HandleDragStart"
@ondragend="HandleDragEnd"
@onclick="@(() => showUpdateForm = true)"
role="button"
>
@Assignment.name
</div>
</div>
<AssignmentForm
Assignment="Assignment"
Show="showUpdateForm"
OnHide="@(() => showUpdateForm = false)"
/>