mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-07-28 01:42:57 +00:00
23 lines
1.2 KiB
Plaintext
23 lines
1.2 KiB
Plaintext
@inherits MSGComponentBase
|
|
|
|
@if (this.Body is not null)
|
|
{
|
|
@if (!this.Disabled() && this.IsLocked())
|
|
{
|
|
<MudField Label="@this.Label" Variant="@this.Variant" Underline="false" HelperText="@this.OptionHelp" Class="@this.Classes" InnerPadding="false">
|
|
<MudStack Row="true" AlignItems="AlignItems.Center" Justify="Justify.FlexStart" Wrap="Wrap.NoWrap" StretchItems="this.StretchItems">
|
|
@* MudTooltip.RootStyle is set as a workaround for issue -> https://github.com/MudBlazor/MudBlazor/issues/10882 *@
|
|
<MudTooltip Text="@TB("This feature is managed by your organization and has therefore been disabled.")" Arrow="true" Placement="Placement.Right" RootStyle="display:inline-flex;">
|
|
<MudIcon Icon="@Icons.Material.Filled.Lock" Color="Color.Error" Size="Size.Small" Class="mr-1"/>
|
|
</MudTooltip>
|
|
@this.Body
|
|
</MudStack>
|
|
</MudField>
|
|
}
|
|
else
|
|
{
|
|
<MudField Label="@this.Label" Variant="@this.Variant" Underline="false" HelperText="@this.OptionHelp" Class="@this.Classes" InnerPadding="false">
|
|
@this.Body
|
|
</MudField>
|
|
}
|
|
} |