reworked role management to work with flex roles

This commit is contained in:
t.ruspekhofer 2022-02-25 19:10:43 +01:00
parent 73441d920f
commit f86451268d
2 changed files with 80 additions and 57 deletions

View file

@ -50,7 +50,7 @@
{
Models.GuildWars2.Raid.RaidSignUp[] signUps = Raid.SignUps.Where(s => s.PlannedRaidRoleId == role.PlannedRaidRoleId).ToArray();
int usedSpots = signUps.Where(s => s.SignUpType == SignUpType.SignedUp).Count();
<tr>
@if (@usedSpots < @role.Spots)
{
@ -175,7 +175,7 @@
async Task SignOffClicked(PlannedRaidRole role, LiebUser liebUser)
{
await RaidService.SignOff(Raid.RaidId, liebUser.LiebUserId);
await RaidService.SignOff(Raid.RaidId, liebUser.LiebUserId, role.PlannedRaidRoleId);
Raid = RaidService.GetRaid(Raid.RaidId);
}