Offer a model in the security audit dialog when none is configured

This commit is contained in:
Thorsten Sommer committed 2026-09-19 19:43:18 +02:00
1 parent 1379ff6aab
commit 8f9d289973
2 files changed
+51 -5

No files matched your search

@@ -36,6 +36,18 @@
</MudText>
</MudPaper>
@if (this.NeedsProviderSelection && !this.securityState.IsEnterpriseApproved)
{
<MudPaper Class="pa-3 border-dashed border rounded-lg">
<MudText Typo="Typo.body2" Class="mb-3">
@T("No model is set for security checks, neither for this agent nor for the app as a whole. Choose one here to check this plugin. Your choice applies to this check only; you can set a permanent one in the app settings.")
</MudText>
<CascadingValue Value="Components.AGENT_ASSISTANT_PLUGIN_AUDIT">
<ProviderSelection @bind-ProviderSettings="@this.auditProviderSelection" ValidateProvider="@this.ValidatingProvider" Disabled="@this.isAuditing" />
</CascadingValue>
</MudPaper>
}
<MudExpansionPanels MultiExpansion="true">
<MudExpansionPanel Expanded="true">
<TitleContent>