Prompt Folder Titel Pflichtfeld

This commit is contained in:
2026-03-23 11:50:26 +01:00
parent 4b268e3e1a
commit 7aa5714505

View File

@@ -20,13 +20,10 @@ namespace BeWo.ViewModel.View.Administration
ViewModel = viewModel;
_IsNew = isNew;
if (!_IsNew)
ViewModel.PropertyChanged += (s, e) =>
{
ViewModel.PropertyChanged += (s, e) =>
{
AcceptCommand.RaiseCanExecuteChanged();
};
}
AcceptCommand.RaiseCanExecuteChanged();
};
}
public AiPromptbausteinFolderVM ViewModel { get; set; }
@@ -35,7 +32,7 @@ namespace BeWo.ViewModel.View.Administration
protected override bool canAccept()
{
return _IsNew || ViewModel.IsDirty;
return (_IsNew || ViewModel.IsDirty) && !string.IsNullOrWhiteSpace(ViewModel.Title);
}
}
}