Resolve "Component: Text Element Navigator" #67

Merged
thorsten merged 43 commits from 11-component-text-element-navigator into main 2022-07-23 19:29:16 +00:00
Showing only changes of commit ccc858830b - Show all commits
@@ -10,7 +10,7 @@ public static class TextElementProcessor
public static async Task<List<TextElement>> GetTextElements(Section section) public static async Task<List<TextElement>> GetTextElements(Section section)
{ {
await using var db = ProcessorMeta.ServiceProvider.GetRequiredService<DataContext>(); await using var db = ProcessorMeta.ServiceProvider.GetRequiredService<DataContext>();
return await db.TextElements.Where(n => n.Section == section).ToListAsync(); return await db.TextElements.Where(n => n.Section == section).OrderBy(n => n.Name).ThenBy(n => n.Id).ToListAsync();
} }
public static async Task<ProcessorResult<TextElement>> AddTextElement(string? currentSectionKey, string elementName) public static async Task<ProcessorResult<TextElement>> AddTextElement(string? currentSectionKey, string elementName)