Senden nur bei Eingabe

This commit is contained in:
2025-05-07 10:13:21 +02:00
parent 31ed28b5a2
commit 97afa64a8a

View File

@@ -46,7 +46,7 @@ namespace BeWo.ViewModel.ListViewModel
{
Models = new ObservableSortCollection<AiModelDC>();
SendNewMessageCommand = new DelegateCommand(SendNewMessage, () => BeWoApp.HasLoggedOnUserRight(UserRightType.AiModuleChatAdd) && SelectedVM is object);
SendNewMessageCommand = new DelegateCommand(SendNewMessage, () => BeWoApp.HasLoggedOnUserRight(UserRightType.AiModuleChatAdd) && SelectedVM is object && !string.IsNullOrWhiteSpace(MessageInput));
RequestNewConversationCommand = new DelegateCommand(RequestNewConversation, () => BeWoApp.HasLoggedOnUserRight(UserRightType.AiModuleChatAdd));
//TestCommand = new DelegateCommand(Test);