mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-05 08:07:21 +00:00
Upgraded to MudBlazor 9 (#1137)
This commit is contained in:
1 parent
e0337a99bc
commit
aeba1fbccc
625 files changed
+408
-882
No files matched your search
@@ -307,8 +307,8 @@ public abstract partial class AssistantBase<TSettings> : AssistantLowerBase wher
|
||||
{
|
||||
// Reset the validation when not editing and on the first render.
|
||||
// We don't want to show validation errors when the user opens the dialog.
|
||||
if(firstRender)
|
||||
this.Form?.ResetValidation();
|
||||
if(firstRender && this.Form is not null)
|
||||
await this.Form.ResetValidationAsync();
|
||||
|
||||
if (this.pendingRenderedAssistantSessionSnapshot is { } snapshot)
|
||||
{
|
||||
@@ -434,7 +434,7 @@ public abstract partial class AssistantBase<TSettings> : AssistantLowerBase wher
|
||||
private async Task ReportProviderIssueAsync()
|
||||
{
|
||||
if (this.Form is not null)
|
||||
await this.Form.Validate();
|
||||
await this.Form.ValidateAsync();
|
||||
|
||||
if (this.ValidatingProvider(this.ProviderSettings) is { } issue && !this.InputIssues.Contains(issue))
|
||||
this.AddInputIssue(issue);
|
||||
@@ -962,9 +962,12 @@ public abstract partial class AssistantBase<TSettings> : AssistantLowerBase wher
|
||||
this.InputIsValid = false;
|
||||
this.InputIssues = [];
|
||||
|
||||
this.Form?.ResetValidation();
|
||||
if (this.Form is not null)
|
||||
await this.Form.ResetValidationAsync();
|
||||
|
||||
await this.RefreshAssistantUIAsync();
|
||||
this.Form?.ResetValidation();
|
||||
if (this.Form is not null)
|
||||
await this.Form.ResetValidationAsync();
|
||||
}
|
||||
|
||||
private string GetResetColor() => this.SettingsManager.IsDarkMode switch
|
||||
|
||||
Reference in new issue
Block a user