Renamed RaidRole and RaidSignUpHistory

This commit is contained in:
t.ruspekhofer 2022-03-23 21:48:29 +01:00
parent 2bf630f3a1
commit bae69648d0
15 changed files with 144 additions and 121 deletions

View file

@ -151,7 +151,7 @@
<th>Role name</th>
<th>Description</th>
</tr>
@foreach( PlannedRaidRole role in _template.Roles)
@foreach( RaidRole role in _template.Roles)
{
<tr>
<td><InputNumber @bind-Value="role.Spots" /></td>
@ -190,7 +190,7 @@
private DateTimeOffset _freeForAllTime;
private string _userTimeZone = string.Empty;
private List<PlannedRaidRole> _rolesToDelete = new List<PlannedRaidRole>();
private List<RaidRole> _rolesToDelete = new List<RaidRole>();
protected override async Task OnInitializedAsync()
@ -233,13 +233,13 @@
async Task AddRoleClicked()
{
_template.Roles.Add(new PlannedRaidRole());
_template.Roles.Add(new RaidRole());
}
async Task DeleteRoleClicked(PlannedRaidRole role)
async Task DeleteRoleClicked(RaidRole role)
{
if(role.PlannedRaidRoleId != 0)
if(role.RaidRoleId != 0)
{
_rolesToDelete.Add(role);
}
@ -261,7 +261,7 @@
if(_template.RaidType != RaidType.Planned)
{
_template.Roles.Clear();
_template.Roles.Add(new PlannedRaidRole()
_template.Roles.Add(new RaidRole()
{
Spots = 10,
Name = "Random",