am syncing assignment groups

This commit is contained in:
2023-08-23 14:06:40 -06:00
parent 8c3ab09f38
commit bbae0c054d
18 changed files with 327 additions and 11 deletions

View File

@@ -25,9 +25,12 @@
assignmentContext.StateHasChanged -= reload;
}
[Parameter]
public Action OnHide { get; set; } = () => { };
private void OnHide()
{
assignmentContext.Assignment = null;
name = "";
lockAtDueDate = false;
}
public Modal? AssignmentModal { get; set; } = null;
private string name { get; set; } = String.Empty;
private bool lockAtDueDate { get; set; }
@@ -111,7 +114,7 @@
}
}
<Modal @ref="AssignmentModal" OnHide="@(() => OnHide())">
<Modal @ref="AssignmentModal" OnHide="OnHide" Size="xl">
<Title>
@assignmentContext.Assignment?.Name
</Title>

View File

@@ -14,6 +14,9 @@
[Parameter]
public Action OnHide { get; set; } = () => { };
[Parameter]
public string Size { get; set; } = "xl"; //sm, lg, xl, xxl
private string modalClass = "hide-modal";
private bool showBackdrop = false;
public void Show()
@@ -33,7 +36,7 @@
}
<div class="modal @modalClass" @onmousedown="Hide">
<div class="modal-dialog modal-xl" role="document" @onmousedown:stopPropagation="true">
<div class="@($"modal-dialog modal-{Size}")" role="document" @onmousedown:stopPropagation="true">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title text-center w-100">@Title</h4>

View File

@@ -22,7 +22,7 @@
}
private string text { get; set; } = string.Empty;
private string questionType { get; set; } = string.Empty;
private int points { get; set; }
private int points { get; set; } = 1;
private IEnumerable<LocalQuizQuestionAnswer> answers { get; set; } = Enumerable.Empty<LocalQuizQuestionAnswer>();
private void handleTypeUpdate(string type)