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
commit 4269ffbe61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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