mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-04-28 07:59:47 +00:00
Added tooltip for enabling or disabling plugins
This commit is contained in:
parent
6cb4cad01f
commit
91948e07c8
@ -65,7 +65,10 @@
|
||||
<MudTd>
|
||||
@if (!context.IsInternal)
|
||||
{
|
||||
<MudSwitch T="bool" Value="@this.SettingsManager.IsPluginEnabled(context)" ValueChanged="@(_ => this.PluginActivationStateChanged(context))"/>
|
||||
var isEnabled = this.SettingsManager.IsPluginEnabled(context);
|
||||
<MudTooltip Text="@(isEnabled ? "Disable plugin" : "Enable plugin")">
|
||||
<MudSwitch T="bool" Value="@isEnabled" ValueChanged="@(_ => this.PluginActivationStateChanged(context))"/>
|
||||
</MudTooltip>
|
||||
}
|
||||
</MudTd>
|
||||
</RowTemplate>
|
||||
|
Loading…
Reference in New Issue
Block a user