mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-26 15:48:32 -06:00
pivoting to local yaml files for state
This commit is contained in:
21
Management.Web/Shared/CurrentFiles.razor
Normal file
21
Management.Web/Shared/CurrentFiles.razor
Normal file
@@ -0,0 +1,21 @@
|
||||
@using LocalModels
|
||||
|
||||
@inject YamlManager yamlManager
|
||||
|
||||
@code
|
||||
{
|
||||
public IEnumerable<LocalCourse> localCourses { get; set; }
|
||||
protected override async Task OnInitializedAsync()
|
||||
{
|
||||
localCourses = await yamlManager.LoadSavedCourses();
|
||||
}
|
||||
}
|
||||
|
||||
@if(localCourses != null)
|
||||
{
|
||||
<h3>Stored Courses</h3>
|
||||
@foreach (var course in localCourses)
|
||||
{
|
||||
<div>@course.Name</div>
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user