Upgraded to MudBlazor 9 (#1137)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-10-31 10:48:20 +01:00
1 parent e0337a99bc
commit aeba1fbccc
625 files changed
+408 -882

No files matched your search

@@ -300,7 +300,7 @@ public partial class ProviderDialog : MSGComponentBase, ISecretId
if (this.DataLLMProvider is not LLMProviders.SELF_HOSTED && !this.IsEnterpriseConfiguration)
{
this.dataAPIKeyStorageIssue = string.Format(T("Failed to load the API key from the operating system. The message was: {0}. You might ignore this message and provide the API key again."), requestedSecret.Issue);
await this.form.Validate();
await this.form.ValidateAsync();
}
}
@@ -321,7 +321,7 @@ public partial class ProviderDialog : MSGComponentBase, ISecretId
// 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(!this.IsEditing && firstRender)
this.form.ResetValidation();
await this.form.ResetValidationAsync();
await base.OnAfterRenderAsync(firstRender);
}
@@ -347,7 +347,7 @@ public partial class ProviderDialog : MSGComponentBase, ISecretId
this.dataStoreWasAttempted = true;
await this.dataTokenizerValidationTask;
await this.form.Validate();
await this.form.ValidateAsync();
if (!string.IsNullOrWhiteSpace(this.dataAPIKeyStorageIssue))
this.dataAPIKeyStorageIssue = string.Empty;
@@ -376,7 +376,7 @@ public partial class ProviderDialog : MSGComponentBase, ISecretId
if (!string.IsNullOrWhiteSpace(this.dataFilePath))
{
this.dataCustomTokenizerValidationIssue = tokenizerResponse.Message;
await this.form.Validate();
await this.form.ValidateAsync();
return;
}
@@ -395,7 +395,7 @@ public partial class ProviderDialog : MSGComponentBase, ISecretId
if (!storeResponse.Success)
{
this.dataAPIKeyStorageIssue = string.Format(T("Failed to store the API key in the operating system. The message was: {0}. Please try again."), storeResponse.Issue);
await this.form.Validate();
await this.form.ValidateAsync();
return;
}
@@ -409,7 +409,7 @@ public partial class ProviderDialog : MSGComponentBase, ISecretId
if (!deleteResponse.Success)
{
this.dataAPIKeyStorageIssue = string.Format(T("Failed to remove the API key from the operating system. The message was: {0}. Please try again."), deleteResponse.Issue);
await this.form.Validate();
await this.form.ValidateAsync();
return;
}
@@ -435,7 +435,7 @@ public partial class ProviderDialog : MSGComponentBase, ISecretId
if (!string.IsNullOrWhiteSpace(this.dataAPIKeyStorageIssue))
{
this.dataAPIKeyStorageIssue = string.Empty;
await this.form.Validate();
await this.form.ValidateAsync();
}
}
@@ -486,8 +486,9 @@ public partial class ProviderDialog : MSGComponentBase, ISecretId
await this.MessageBus.SendWarning(new(Icons.Material.Filled.Warning, T("Please drop a tokenizer file in the JSON format.")));
}
private async Task OnDataFilePathChanged(string filePath)
private async Task OnDataFilePathChanged(string? changedFilePath)
{
var filePath = changedFilePath ?? string.Empty;
this.dataFilePath = filePath;
var validationRevision = ++this.dataTokenizerValidationRevision;
this.dataTokenizerValidationTask = this.ValidateCustomTokenizer(filePath, validationRevision);
@@ -497,9 +498,9 @@ public partial class ProviderDialog : MSGComponentBase, ISecretId
return;
if (this.dataStoreWasAttempted)
await this.form.Validate();
await this.form.ValidateAsync();
else
this.form.ResetValidation();
await this.form.ResetValidationAsync();
}
private async Task ValidateCustomTokenizer(string filePath, int validationRevision)