Fixed validation

This commit is contained in:
Thorsten Sommer 2024-08-13 20:06:14 +02:00
parent a51592e533
commit 2a72c5a764
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108
4 changed files with 4 additions and 0 deletions

View File

@ -69,6 +69,7 @@ public partial class AssistantGrammarSpelling : AssistantBaseCore
private async Task ProofreadText() private async Task ProofreadText()
{ {
await this.form!.Validate();
if (!this.inputIsValid) if (!this.inputIsValid)
return; return;

View File

@ -75,6 +75,7 @@ public partial class AssistantRewriteImprove : AssistantBaseCore
private async Task RewriteText() private async Task RewriteText()
{ {
await this.form!.Validate();
if (!this.inputIsValid) if (!this.inputIsValid)
return; return;

View File

@ -69,6 +69,7 @@ public partial class AssistantTranslation : AssistantBaseCore
private async Task TranslateText(bool force) private async Task TranslateText(bool force)
{ {
await this.form!.Validate();
if (!this.inputIsValid) if (!this.inputIsValid)
return; return;

View File

@ -1,4 +1,5 @@
# v0.8.8, build 170 # v0.8.8, build 170
- Added a grammar and spell checker assistant - Added a grammar and spell checker assistant
- Added a rewrite and text improvement assistant - Added a rewrite and text improvement assistant
- Fixed validation for the translation assistant
- Upgraded MudBlazor to v7.6.0 - Upgraded MudBlazor to v7.6.0