order theme controls and container comtrols in alphabetical order based on name
This commit is contained in:
parent
160477d612
commit
5d650bd276
|
@ -27,7 +27,7 @@ namespace Oqtane.Services
|
||||||
|
|
||||||
public List<ThemeControl> GetThemeControls(List<Theme> themes)
|
public List<ThemeControl> GetThemeControls(List<Theme> themes)
|
||||||
{
|
{
|
||||||
return themes.SelectMany(item => item.Themes).ToList();
|
return themes.SelectMany(item => item.Themes).OrderBy(item => item.Name).ToList();
|
||||||
}
|
}
|
||||||
|
|
||||||
//[Obsolete("This method is deprecated.", false)]
|
//[Obsolete("This method is deprecated.", false)]
|
||||||
|
@ -39,7 +39,7 @@ namespace Oqtane.Services
|
||||||
public List<ThemeControl> GetContainerControls(List<Theme> themes, string themeName)
|
public List<ThemeControl> GetContainerControls(List<Theme> themes, string themeName)
|
||||||
{
|
{
|
||||||
return themes.Where(item => Utilities.GetTypeName(themeName).StartsWith(Utilities.GetTypeName(item.ThemeName)))
|
return themes.Where(item => Utilities.GetTypeName(themeName).StartsWith(Utilities.GetTypeName(item.ThemeName)))
|
||||||
.SelectMany(item => item.Containers).ToList();
|
.SelectMany(item => item.Containers).OrderBy(item => item.Name).ToList();
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task UpdateThemeAsync(Theme theme)
|
public async Task UpdateThemeAsync(Theme theme)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user