move logic for populating theme control names

This commit is contained in:
sbwalker 2023-06-10 13:35:22 -04:00
parent 88c489a585
commit 3b644338bc

View File

@ -130,14 +130,16 @@ namespace Oqtane.Repository
{ {
// override user customizable property values // override user customizable property values
Theme.Name = (!string.IsNullOrEmpty(theme.Name)) ? theme.Name : Theme.Name; Theme.Name = (!string.IsNullOrEmpty(theme.Name)) ? theme.Name : Theme.Name;
foreach (var themecontrol in Theme.Themes)
{
themecontrol.Name = Theme.Name + " - " + themecontrol.Name;
}
// remove theme from list as it is already synced // remove theme from list as it is already synced
themes.Remove(theme); themes.Remove(theme);
} }
// format theme control names
foreach (var themecontrol in Theme.Themes)
{
themecontrol.Name = Theme.Name + " - " + themecontrol.Name;
}
Theme.ThemeId = theme.ThemeId; Theme.ThemeId = theme.ThemeId;
Theme.CreatedBy = theme.CreatedBy; Theme.CreatedBy = theme.CreatedBy;
Theme.CreatedOn = theme.CreatedOn; Theme.CreatedOn = theme.CreatedOn;