Skip to content

Commit

Permalink
Merge pull request #136 from SSchulze1989/develop
Browse files Browse the repository at this point in the history
v 0.11.5
  • Loading branch information
SSchulze1989 authored Feb 21, 2024
2 parents 1f1dc1c + d512916 commit b6bc2bb
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
ErrorText="@ErrorText"
@attributes="AdditionalAttributes"
@ref=Autocomplete
NoItemsTemplate="NoItemsTemplate" />
NoItemsTemplate="NoItemsTemplate"
MaxItems="MaxItems" />
<MudChipSet Class="mt-1" AllClosable=true OnClose="RemoveValue">
@foreach (var val in selectedValues)
{
Expand Down Expand Up @@ -74,6 +75,9 @@
[Parameter]
public RenderFragment? NoItemsTemplate { get; set; }

[Parameter]
public int MaxItems { get; set; } = 100;

private HashSet<T> selectedValues = new HashSet<T>();

private MudAutocomplete<T> Autocomplete { get; set; } = default!;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
@bind-Values=Vm.Members
SearchFunc="SearchMembers"
ToStringFunc="@(member => member is null ? string.Empty : $"{member.FirstName} {member.LastName}")"
Variant="Variant.Outlined" />
Variant="Variant.Outlined"
MaxItems="1000"/>
<FormValidationMessage TValue=string Message=@ResultValidator?.ErrorMessage />
</MudStack>
</EditForm>
Expand All @@ -49,7 +50,7 @@
}
}

private async Task<IEnumerable<MemberInfoModel>> SearchMembers(string searchString)
private async Task<IEnumerable<MemberInfoModel>> SearchMembers(string? searchString)
{
if (string.IsNullOrEmpty(searchString))
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,12 @@
private PointRuleModel PointRuleModel
{
get => Scoring.PointRule.GetModel();
set => Scoring.PointRule.SetModel(value, changed: true);
set
{
var scoringModel = Scoring.GetModel();
scoringModel.PointRule = value;
Scoring.SetModel(scoringModel, changed: true);
}
}

protected override void OnParametersSet()
Expand Down
2 changes: 1 addition & 1 deletion src/iRLeagueManager.Web/iRLeagueManager.Web.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<Version>0.11.4</Version>
<Version>0.11.5</Version>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<UserSecretsId>aspnet-iRLeagueManager.Web-2B05F9DC-55A3-49D1-BD64-31507000EDF3</UserSecretsId>
Expand Down

0 comments on commit b6bc2bb

Please sign in to comment.