mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-02-12 22:21:36 +00:00
27 lines
879 B
Plaintext
27 lines
879 B
Plaintext
|
|
@inherits ConfigurationBaseCore
|
||
|
|
|
||
|
|
<MudStack Row="true" AlignItems="AlignItems.Center" Spacing="2">
|
||
|
|
<MudIcon Icon="@this.Icon" Color="@this.IconColor"/>
|
||
|
|
<MudText Typo="Typo.body1" Class="flex-grow-1">
|
||
|
|
@if (string.IsNullOrWhiteSpace(this.Shortcut()))
|
||
|
|
{
|
||
|
|
@T("No shortcut configured")
|
||
|
|
}
|
||
|
|
else
|
||
|
|
{
|
||
|
|
<MudChip T="string" Color="Color.Primary" Size="Size.Small" Variant="Variant.Outlined">
|
||
|
|
@this.GetDisplayShortcut()
|
||
|
|
</MudChip>
|
||
|
|
}
|
||
|
|
</MudText>
|
||
|
|
<MudButton Variant="Variant.Outlined"
|
||
|
|
Color="Color.Primary"
|
||
|
|
Size="Size.Small"
|
||
|
|
StartIcon="@Icons.Material.Filled.Edit"
|
||
|
|
OnClick="@this.OpenDialog"
|
||
|
|
Disabled="@this.IsDisabled"
|
||
|
|
Class="mb-1">
|
||
|
|
@T("Change shortcut")
|
||
|
|
</MudButton>
|
||
|
|
</MudStack>
|