Merge pull request #132 from fileman/PreselectSinglePane

if only one pane is available select it
This commit is contained in:
Shaun Walker
2019-10-17 09:11:45 -04:00
committed by GitHub

View File

@ -196,6 +196,8 @@
pages.Add(p); pages.Add(p);
} }
} }
var panes = PageState.Page.Panes.Split(new[] { ';' }, StringSplitOptions.RemoveEmptyEntries);
pane = panes.Count() == 1 ? panes.SingleOrDefault() : "";
containers = ThemeService.GetContainerTypes(PageState.Themes); containers = ThemeService.GetContainerTypes(PageState.Themes);
containertype = PageState.Site.DefaultContainerType; containertype = PageState.Site.DefaultContainerType;
List<Module> modules = await ModuleService.GetModulesAsync(PageState.Site.SiteId, Constants.PageManagementModule); List<Module> modules = await ModuleService.GetModulesAsync(PageState.Site.SiteId, Constants.PageManagementModule);