Files
AI-Studio/app/MindWork AI Studio/Components/OutboundDataRestrictionSelection.razor
T

24 lines
998 B
Plaintext

@using AIStudio.Settings
@using AIStudio.Settings.DataModel
@inherits MSGComponentBase
<MudSelect T="OutboundDataRestriction" Value="@this.Value" ValueChanged="@this.ValueChanged" Text="@this.Value.Name" Label="@this.Label" Class="mb-1" OpenIcon="@Icons.Material.Filled.ExpandMore" AdornmentColor="Color.Info" Adornment="Adornment.Start" AdornmentIcon="@Icons.Material.Filled.Shield">
@foreach (var restriction in ConfigurationSelectDataFactory.GetOutboundDataRestrictionData(this.Minimum))
{
<MudSelectItem T="OutboundDataRestriction" Value="@restriction.Value">
@restriction.Name
</MudSelectItem>
}
</MudSelect>
<MudJustifiedText Typo="Typo.body2" Class="mb-1">
@this.Value.Description
</MudJustifiedText>
@if (this.LimitationText is { } limitationText)
{
<MudJustifiedText Typo="Typo.body2" Class="mb-1">
@limitationText
</MudJustifiedText>
}
<MudJustifiedText Typo="Typo.body2" Class="mb-6">
@this.Explanation
</MudJustifiedText>