fix #5200 - sort folders alphabetically, display folders hierarchically

This commit is contained in:
sbwalker
2025-05-14 15:51:51 -04:00
parent f1791a709c
commit f3fcef52dd
4 changed files with 25 additions and 60 deletions

View File

@ -42,14 +42,6 @@ namespace Oqtane.Services
return await PutJsonAsync<Folder>($"{ApiUrl}/{folder.FolderId}", folder);
}
public async Task UpdateFolderOrderAsync(int siteId, int folderId, int? parentId)
{
var parent = parentId == null
? string.Empty
: parentId.ToString();
await PutAsync($"{ApiUrl}/?siteid={siteId}&folderid={folderId}&parentid={parent}");
}
public async Task DeleteFolderAsync(int folderId)
{
await DeleteAsync($"{ApiUrl}/{folderId}");