Skip to content

Commit

Permalink
Merge branch 'fix_showsitetitle_not_applied' of https://github.com/ed…
Browse files Browse the repository at this point in the history
  • Loading branch information
jansenbe committed Jun 8, 2022
2 parents 88d60c1 + 5e9be95 commit 2ab0043
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,16 @@ public override TokenParser ProvisionObjects(Web web, ProvisioningTemplate templ

web.HeaderEmphasis = (SPVariantThemeType)Enum.Parse(typeof(SPVariantThemeType), template.Header.BackgroundEmphasis.ToString());
web.MegaMenuEnabled = template.Header.MenuStyle == SiteHeaderMenuStyle.MegaMenu;
web.HideTitleInHeader = !template.Header.ShowSiteTitle;

var jsonRequest = new
{
headerLayout = web.HeaderLayout,
headerEmphasis = web.HeaderEmphasis,
megaMenuEnabled = web.MegaMenuEnabled,
hideTitleInHeader = web.HideTitleInHeader
};

web.ExecutePostAsync("/_api/web/SetChromeOptions", System.Text.Json.JsonSerializer.Serialize(jsonRequest)).GetAwaiter().GetResult();
}

Expand Down

0 comments on commit 2ab0043

Please # to comment.