Refactor Users page: update Autocomplete selection mode and fix user service methods to use OldItem for adding and updating users

This commit is contained in:
a.beging@eas-solutions.de
2026-04-23 15:44:27 +02:00
parent 94a2dbf801
commit b1ed916da4
3 changed files with 7 additions and 7 deletions

View File

@@ -92,9 +92,9 @@
Data="@UserGroups"
TextField="@(( item ) => item.ToString())"
ValueField="@(( item ) => item)"
Multiple="true"
SelectionMode="AutocompleteSelectionMode.Multiple"
SelectedValues="@((List<UserGroup>) context.CellValue)"
SelectedValuesChanged="@(v => context.CellValue = v)"
SelectedValuesChanged="@(v => { context.CellValue = v.ToList(); })"
@bind-SelectedTexts="SelectedCompanyTexts">
</Autocomplete>
<small>Verfügbar: @string.Join(", ", Enum.GetValues<UserGroup>())</small>