diff --git a/Lieb/Pages/Raids/RaidRoles.razor b/Lieb/Pages/Raids/RaidRoles.razor index 4e950ce..3d761aa 100644 --- a/Lieb/Pages/Raids/RaidRoles.razor +++ b/Lieb/Pages/Raids/RaidRoles.razor @@ -5,10 +5,27 @@ @inject RaidService RaidService
Role | +|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ @if(@_expandableRoles.FirstOrDefault().IsRowExpanded) + { + + } + else + { + + } + Role + | Users | + @if (flexExists) + { +Flex | + }(@_raid.SignUps.Where(s => s.SignUpType == SignUpType.SignedUp).Count()/@_raid.Roles.Sum(r => r.Spots)) | ||||||||
- @role.Name (@_raid.SignUps.Where(s => s.PlannedRaidRoleId == role.PlannedRaidRoleId && s.SignUpType == SignUpType.SignedUp).Count() / @role.Spots)
- @role.Description + @{ + | role.IsRowExpanded = !role.IsRowExpanded">
+ @if(@role.IsRowExpanded)
+ {
+
+ }
+ else
+ {
+
+ }
+ @role.Role.Name (@_raid.SignUps.Where(s => s.PlannedRaidRoleId == role.Role.PlannedRaidRoleId && s.SignUpType == SignUpType.SignedUp).Count() / @role.Role.Spots)
+ @if (@role.IsRowExpanded)
+ {
+ @role.Role.Description + } |
+ }
+ @{List |
- @if(_liebUserId > 0)
+ @if (flexExists)
{
- bool notIsRoleSignUpAllowed = !RaidService.IsRoleSignUpAllowed(_raid.RaidId, _liebUserId, role.PlannedRaidRoleId, SignUpType.SignedUp, false);
+ List
+ |
+ }
+ @if(_liebUserId > 0 && _isRaidSignUpAllowed)
+ {
+ bool notIsRoleSignUpAllowed = !RaidService.IsRoleSignUpAllowed(_raid.RaidId, _liebUserId, role.Role.PlannedRaidRoleId, SignUpType.SignedUp, false);
bool notIsBackupAllowed = _raid.RaidType != RaidType.Planned && notIsRoleSignUpAllowed;
- - | - | + | + | + | @if (isSignedUp && _raid.RaidType == RaidType.Planned) { - | + | } } |
+ @signUp.GuildWars2Account.AccountName @signUpStatus + @if(_showToolTip) + { + @signUp.LiebUser.Name + } + | + } else {@signUp.GuildWars2Account.AccountName @signUpStatus - @signUp.LiebUser.Name + @if(_showToolTip) + { + @signUp.LiebUser.Name + } | }