Added support for friendly names and thumbnails in theme, layout, and container components. Added fallback support during loading for themes, layout, and containers.
This commit is contained in:
		| @ -161,9 +161,9 @@ | ||||
|                     <div class="col text-center"> | ||||
|                         <label for="Container" class="control-label">Container: </label> | ||||
|                         <select class="form-control" @bind="@ContainerType"> | ||||
|                             @foreach (KeyValuePair<string, string> container in _containers) | ||||
|                             @foreach (var container in _containers) | ||||
|                             { | ||||
|                                 <option value="@container.Key">@container.Value</option> | ||||
|                                 <option value="@container.TypeName">@container.Name</option> | ||||
|                             } | ||||
|                         </select> | ||||
|                     </div> | ||||
| @ -218,7 +218,7 @@ | ||||
|     private List<ModuleDefinition> _moduleDefinitions; | ||||
|     private List<Page> _pages = new List<Page>(); | ||||
|     private List<Module> _modules = new List<Module>(); | ||||
|     private Dictionary<string, string> _containers = new Dictionary<string, string>(); | ||||
|     private List<ThemeControl> _containers = new List<ThemeControl>(); | ||||
|     private string _display = "display: none;"; | ||||
|     private string _category = "Common"; | ||||
|  | ||||
| @ -301,7 +301,7 @@ | ||||
|             var panes = PageState.Page.Panes; | ||||
|             Pane = panes.Count() == 1 ? panes.SingleOrDefault() : ""; | ||||
|             var themes = await ThemeService.GetThemesAsync(); | ||||
|             _containers = ThemeService.GetContainerTypes(themes, PageState.Page.ThemeType); | ||||
|             _containers = ThemeService.GetContainerControls(themes, PageState.Page.ThemeType); | ||||
|             ContainerType = PageState.Site.DefaultContainerType; | ||||
|  | ||||
|             _allModuleDefinitions = await ModuleDefinitionService.GetModuleDefinitionsAsync(PageState.Site.SiteId); | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Shaun Walker
					Shaun Walker