KI Prompt: Factory-Methode umbenannt
This commit is contained in:
@@ -568,7 +568,7 @@ namespace BeWo.View.Master
|
||||
CheckMandatorVM(() => AddView(TabitemSozioTherapie, new SoziotherapieSettingsView(this)));
|
||||
return;
|
||||
case nameof(TabitemAiPromptbausteine):
|
||||
VMFactory.CreateAiPromptbausteinListAsync(
|
||||
VMFactory.CreateAiPromptbausteinListVMAsync(
|
||||
r => this.Dispatch(() => AddView(TabitemAiPromptbausteine, new Detail.AI.AiPromptbausteinView(r))));
|
||||
return;
|
||||
case nameof(TabitemAiPromptbausteineTree):
|
||||
|
||||
@@ -933,12 +933,12 @@ namespace BeWo.ViewModel
|
||||
});
|
||||
}
|
||||
|
||||
internal static void CreateAiPromptbausteinListAsync(Action<AiPromptbausteinListVM> rtn_viewmodel)
|
||||
internal static void CreateAiPromptbausteinListVMAsync(Action<AiPromptbausteinListVM> rtn_viewmodel)
|
||||
{
|
||||
ServiceFacade.DoAiEnhancedServiceAsnyc(x => x.GetAiPromptbausteine(), cb =>
|
||||
{
|
||||
var list = new AiPromptbausteinListVM(cb);
|
||||
rtn_viewmodel(list);
|
||||
var listVM = new AiPromptbausteinListVM(cb);
|
||||
rtn_viewmodel(listVM);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user