diff --git a/src/Masa.Stack.Components/Shared/IntegrationComponents/ThirdPartyIdp/SThirdPartySchemeSelect.razor b/src/Masa.Stack.Components/Shared/IntegrationComponents/ThirdPartyIdp/SThirdPartySchemeSelect.razor index 7f953f9e..70ca437c 100644 --- a/src/Masa.Stack.Components/Shared/IntegrationComponents/ThirdPartyIdp/SThirdPartySchemeSelect.razor +++ b/src/Masa.Stack.Components/Shared/IntegrationComponents/ThirdPartyIdp/SThirdPartySchemeSelect.razor @@ -3,7 +3,7 @@ + Class="@($"{Class}")" + Tooltip="@Tooltip">
@@ -31,9 +32,6 @@ [Parameter] public EventCallback ValueChanged { get; set; } - [Parameter] - public List? ThirdPartyIdps { get; set; } - [Parameter] public bool Small { get; set; } @@ -46,18 +44,23 @@ [Parameter] public bool FillBackground { get; set; } = true; + [Parameter] + public bool IncludeLdap { get; set; } = true; + + [Parameter] + public string? Tooltip { get; set; } + + private List? _thirdPartyIdps = new(); + protected override async Task OnInitializedAsync() { - if (ThirdPartyIdps is null) - { - await InitThirdPartyIdps(); - } - else Label ??= "ThirdPartyIdp"; + Label ??= "ThirdPartyIdp"; + + await InitThirdPartyIdps(); } public async Task InitThirdPartyIdps() { - ThirdPartyIdps = new(); - ThirdPartyIdps.AddRange(await AuthClient.ThirdPartyIdpService.GetSelectAsync(default, true)); + _thirdPartyIdps = await AuthClient.ThirdPartyIdpService.GetSelectAsync(default, IncludeLdap); } }