File tree Expand file tree Collapse file tree 4 files changed +22
-28
lines changed
lib/files/FWO.Config.File
tests-unit/files/FWO.Test Expand file tree Collapse file tree 4 files changed +22
-28
lines changed Original file line number Diff line number Diff line change 77 </PropertyGroup >
88
99 <ItemGroup >
10- <PackageReference Include =" System.IdentityModel.Tokens.Jwt" Version =" 8.6.1 " />
10+ <PackageReference Include =" System.IdentityModel.Tokens.Jwt" Version =" 8.7.0 " />
1111 </ItemGroup >
1212
1313 <ItemGroup >
Original file line number Diff line number Diff line change 1313 <PackageReference Include =" NUnit" Version =" 4.3.2" />
1414 <PackageReference Include =" NUnit3TestAdapter" Version =" 5.0.0" />
1515 <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 17.13.0" />
16- <PackageReference Include =" Microsoft.IdentityModel.Tokens" Version =" 8.6.1 " />
16+ <PackageReference Include =" Microsoft.IdentityModel.Tokens" Version =" 8.7.0 " />
1717 </ItemGroup >
1818
1919 <ItemGroup >
Original file line number Diff line number Diff line change 1- @using FWO .Data .Middleware
1+ @using FWO .Data .Middleware
22@using FWO .Middleware .Client
33@using RestSharp
44@using System .Net
1212 <Body >
1313 @if (Display )
1414 {
15- <form >
15+ <form class = " mt-2 " >
1616 <form class =" form-group row" data-toggle =" tooltip" title =" @(userConfig.PureLine(" H5351 " ))" >
17- <label class =" col-sm-2 col-form-label col-form-label-sm " >@( userConfig .GetText (" from_ldap" )) : </label >
18- <div class =" col-sm -3" >
17+ <label class =" col-form-label col-form-label-sm col-2 col-md-3 col-xl-2 " >@( userConfig .GetText (" from_ldap" )) : </label >
18+ <div class =" col-10 col-md-9 col-xl-5 col-xxl -3" >
1919 <Dropdown ElementType =" UiLdapConnection" ElementToString =" @(l => l.Name)" @bind-SelectedElement =" selectedLdap" Elements =" connectedLdaps" >
2020 <ElementTemplate Context =" ldap" >
2121 @ldap.Name
2222 </ElementTemplate >
2323 </Dropdown >
2424 </div >
25- <label class =" col-sm-2 col-form-label col-form-label-sm" >@( userConfig .GetText (" search_pattern" )) : </label >
26- <div class =" col-sm-3" >
27- <input class =" form-control-sm col-sm" type =" text" @bind =" searchPattern" />
28- </div >
29- <div class =" col-sm-2" >
30- <button type =" button" class =" btn btn-sm btn-success" @onclick =" async() => await SearchInLdap()" @onclick:preventDefault >@( userConfig .GetText (" search" )) </button >
25+ <div class =" col-12 col-xl-5 col-xxl-7 mt-lg-2 mt-xl-0" >
26+ <label for =" lblSearchPattern" class =" col-form-label col-form-label-sm" >@( userConfig .GetText (" search_pattern" )) : </label >
27+ <input id =" lblSearchPattern" class =" form-control-sm col-sm" type =" text" @bind =" searchPattern" />
28+ <button type =" button" class =" btn btn-sm btn-success mt-1 mt-md-0 mt-xl-1 mt-xxl-0" @onclick =" async() => await SearchInLdap()" @onclick:preventDefault >@( userConfig .GetText (" search" )) </button >
3129 </div >
3230 </form >
3331 @if (UserSearchMode )
Original file line number Diff line number Diff line change 269269
270270 private async Task SelectElement (ElementType element )
271271 {
272- Debug .Assert (! Multiselect , " If the Multiselect option is enabled do not use the property SelectedElement but SelectedElements instead." );
273- if (( SelectedElements .Count () == 0 && element != null ) || ! Object .Equals (element , SelectedElements .FirstOrDefault ()))
272+ if (element == null )
274273 {
275- if (element == null )
274+ Debug .Assert (Nullable == true , " The assigned value is null but the Nullable option is not enabled." );
275+ SelectedElements = Enumerable .Empty <ElementType >();
276+ }
277+ else
278+ {
279+ if (Multiselect )
276280 {
277- Debug . Assert ( Nullable == true , " The assigned value is null but the Nullable option is not enabled. " );
278- SelectedElements = Enumerable . Empty < ElementType >( );
281+ SelectedElements = SelectedElements . Append ( element );
282+ await SelectedElementsChanged . InvokeAsync ( SelectedElements );
279283 }
280284 else
281285 {
282- if (Multiselect )
283- {
284- SelectedElements = SelectedElements .Append (element );
285- await SelectedElementsChanged .InvokeAsync (SelectedElements );
286- }
287- else
288- {
289- SelectedElement = element ;
290- await SelectedElementChanged .InvokeAsync (element );
291- }
286+ SelectedElement = element ;
287+ await SelectedElementChanged .InvokeAsync (element );
292288 }
293- await CompleteSelectionChange ();
294289 }
290+ await CompleteSelectionChange ();
295291 }
296292
297293 private async Task CompleteSelectionChange ()
You can’t perform that action at this time.
0 commit comments