Merge pull request #3049 from sbwalker/dev

FileManager modification to support ShowFolders = False
This commit is contained in:
Shaun Walker 2023-07-19 15:45:25 -04:00 committed by GitHub
commit fe503b7bee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -168,7 +168,21 @@
ShowSuccess = true;
}
if (ShowFolders)
{
_folders = await FolderService.GetFoldersAsync(ModuleState.SiteId);
}
else
{
if (FolderId != -1)
{
var folder = await FolderService.GetFolderAsync(FolderId);
if (folder != null)
{
_folders = new List<Folder> { folder };
}
}
}
if (!string.IsNullOrEmpty(Folder) && Folder != Constants.PackagesFolder)
{