Favoriten Order
+ Routine.!IsValid bearbeitbar
This commit is contained in:
@@ -29,7 +29,8 @@ namespace BeWo.ViewModel.View.Administration
|
||||
private AiActionType AiActionType { get; set; }
|
||||
|
||||
public AiPromptbausteinFolderListVM Folders { get; set; }
|
||||
public AiPromptbausteinFolderVM Favoriten { get; set; }
|
||||
public AiPromptbausteinFolderVM Favoriten => Folders.VMList[0];
|
||||
public AiPromptbausteinFolderVM RootFolders => Folders.VMList[1];
|
||||
|
||||
public AiPromptbausteinFolderVM CopiedFolder { get; set; }
|
||||
public AiPromptbausteinPromptVM CopiedPrompt { get; set; }
|
||||
@@ -186,19 +187,11 @@ namespace BeWo.ViewModel.View.Administration
|
||||
listvm =>
|
||||
{
|
||||
Folders = listvm;
|
||||
if (Folders.VMList.Count > 0
|
||||
&& Folders.VMList[0].DataContract.Oid == -51
|
||||
&& Folders.VMList[0].SubFolders.Count > 0
|
||||
&& Folders.VMList[0].SubFolders.VMList[0].DataContract.Oid == -5)
|
||||
{
|
||||
Favoriten = Folders.VMList[0].SubFolders.VMList[0];
|
||||
}
|
||||
|
||||
if (Folders.VMList.Count > 0
|
||||
&& Folders.VMList[0].DataContract.Oid == -51
|
||||
&& Folders.VMList[0].SubFolders.Count > 1
|
||||
&& Folders.VMList[0].SubFolders.VMList[1].DataContract.Oid == -1)
|
||||
Folders.VMList[0].SubFolders.VMList[1].IsSelected = true;
|
||||
if (RootFolders.SubFolders.VMList[0].DataContract.Oid == -1)
|
||||
{
|
||||
RootFolders.SubFolders.VMList[0].IsSelected = true;
|
||||
}
|
||||
|
||||
FirePropertyChanged(nameof(Folders));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user