mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-13 23:07:21 +00:00
Added the choice between formal and informal address to the whole app (#1200)
This commit is contained in:
1 parent
382db4b8d0
commit
c9a376f742
342 files changed
+14378
-1893
No files matched your search
@@ -49,12 +49,12 @@ public partial class SingleInputDialog : MSGComponentBase
|
||||
|
||||
#endregion
|
||||
|
||||
private string GetInputHeaderText => string.IsNullOrWhiteSpace(this.InputHeaderText) ? T("Your Input") : this.InputHeaderText;
|
||||
private string GetInputHeaderText => string.IsNullOrWhiteSpace(this.InputHeaderText) ? TA("Your Input") : this.InputHeaderText;
|
||||
|
||||
private string? ValidateUserInput(string? value)
|
||||
{
|
||||
if (!this.AllowEmptyInput && string.IsNullOrWhiteSpace(value))
|
||||
return string.IsNullOrWhiteSpace(this.EmptyInputErrorMessage) ? T("Please enter a value.") : this.EmptyInputErrorMessage;
|
||||
return string.IsNullOrWhiteSpace(this.EmptyInputErrorMessage) ? TA("Please enter a value.") : this.EmptyInputErrorMessage;
|
||||
|
||||
return this.AdditionalValidation?.Invoke(value);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user