renaming modules doesnt duplicate files anymore

This commit is contained in:
2023-11-28 10:25:22 -07:00
parent dd4ec9a761
commit c08e9b478b
9 changed files with 78 additions and 177 deletions

View File

@@ -17,6 +17,7 @@
planner.StateHasChanged -= reload;
}
private bool syncingAssignmentGroups { get; set; } = false;
private void AddAssignmentGroup()
{
if(planner.LocalCourse != null)
@@ -83,6 +84,13 @@
}
};
}
private async Task SyncAssignmentGroupsWithCanvas()
{
syncingAssignmentGroups = true;
await planner.SyncAssignmentGroups();
syncingAssignmentGroups = false;
}
}
@if(planner.LocalCourse != null)
@@ -119,4 +127,16 @@
+ Assignment Group
</button>
</div>
<button
class="btn btn-outline-secondary"
@onclick="SyncAssignmentGroupsWithCanvas"
disabled="@syncingAssignmentGroups"
>
Sync Assignment Groups With Canvas
</button>
@if(syncingAssignmentGroups)
{
<Spinner />
}
}