Promptbausteine in DB einfügen (under construction)

This commit is contained in:
2025-12-05 13:49:42 +01:00
parent ca7052af88
commit eee148f53f
6 changed files with 73 additions and 9 deletions

View File

@@ -36,6 +36,7 @@ namespace BeWo.ViewModel.View.Administration
PastePromptbausteinCommand = new DelegateCommand(PastePromptbaustein, canCopy);
DeletePromptbausteinCommand = new DelegateCommand(DeletePromptbaustein, isObject);
}
public AiPromptbausteinTreeViewModel(IWindowService windowService) : this()
{
WindowService = windowService;
@@ -58,7 +59,9 @@ namespace BeWo.ViewModel.View.Administration
public ICommand PastePromptbausteinCommand { get; set; }
public ICommand DeletePromptbausteinCommand { get; set; }
public void UpdateVMList(AiPromptbausteinTreeListVM new_list)
public bool IsDirty => ListVM.IsDirty;
public void UpdateVMList(AiPromptbausteinTreeListVM new_list)
{
ListVM = new_list;
FirePropertyChanged(nameof(ListVM));