mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-08 19:49:40 +00:00
Improved secret input fields by adding a toggle visibility feature (#479)
This commit is contained in:
1 parent
e11c15dbab
commit
e3110820d2
9 files changed
+96
-38
No files matched your search
@@ -22,18 +22,7 @@
|
||||
|
||||
@if (this.DataLLMProvider.IsAPIKeyNeeded(this.DataHost))
|
||||
{
|
||||
@* ReSharper disable once CSharpWarnings::CS8974 *@
|
||||
<MudTextField
|
||||
T="string"
|
||||
@bind-Text="@this.dataAPIKey"
|
||||
Label="@this.APIKeyText"
|
||||
Class="mb-3"
|
||||
Adornment="Adornment.Start"
|
||||
AdornmentIcon="@Icons.Material.Filled.VpnKey"
|
||||
AdornmentColor="Color.Info"
|
||||
InputType="InputType.Password"
|
||||
Immediate="true"
|
||||
Validation="@this.providerValidation.ValidatingAPIKey"/>
|
||||
<SecretInputField @bind-Secret="@this.dataAPIKey" Label="@this.APIKeyText" Validation="@this.providerValidation.ValidatingAPIKey"/>
|
||||
}
|
||||
|
||||
@if (this.DataLLMProvider.IsHostnameNeeded())
|
||||
|
||||
Reference in new issue
Block a user