AI-Studio/app/MindWork AI Studio/Components/LockableButton.razor

8 lines
509 B
Plaintext
Raw Normal View History

@inherits ConfigurationBaseCore
@* The tooltip is suppressed while the button is locked, so that the lock icon's tooltip is the only one shown: *@
<MudTooltip Text="@this.Tooltip" Disabled="@(this.IsLocked() || string.IsNullOrWhiteSpace(this.Tooltip))" RootStyle="display:inline-flex;">
<MudButton Variant="@this.ButtonVariant" Color="@this.ButtonColor" StartIcon="@this.Icon" Disabled="@this.IsDisabled" OnClick="@(async () => await this.ClickAsync())">
@this.Text
</MudButton>
</MudTooltip>