From fd6caf5cee2c4366cacf63a9c30c998c6c5b2a52 Mon Sep 17 00:00:00 2001 From: Shannon Date: Tue, 16 Jun 2015 10:59:47 +0200 Subject: [PATCH] updates how scripts render in main view - make it more clear where the callback is --- src/Umbraco.Web.UI/umbraco/Views/Default.cshtml | 11 +++++++++-- src/Umbraco.Web/HtmlHelperBackOfficeExtensions.cs | 10 ++++------ 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/src/Umbraco.Web.UI/umbraco/Views/Default.cshtml b/src/Umbraco.Web.UI/umbraco/Views/Default.cshtml index 63a8688301..048b08085b 100644 --- a/src/Umbraco.Web.UI/umbraco/Views/Default.cshtml +++ b/src/Umbraco.Web.UI/umbraco/Views/Default.cshtml @@ -66,10 +66,17 @@ - @Html.BareMinimumServerVariables(Url, Url.Action("ExternalLogin", "BackOffice", new { area = ViewBag.UmbracoPath })) + @Html.BareMinimumServerVariablesScript(Url, Url.Action("ExternalLogin", "BackOffice", new { area = ViewBag.UmbracoPath })) - @Html.AngularExternalLoginInfoValues((IEnumerable)ViewBag.ExternalSignInError) + + @*And finally we can load in our angular app*@ diff --git a/src/Umbraco.Web/HtmlHelperBackOfficeExtensions.cs b/src/Umbraco.Web/HtmlHelperBackOfficeExtensions.cs index e43cd21a0e..e3f58bb69e 100644 --- a/src/Umbraco.Web/HtmlHelperBackOfficeExtensions.cs +++ b/src/Umbraco.Web/HtmlHelperBackOfficeExtensions.cs @@ -28,7 +28,7 @@ namespace Umbraco.Web /// These are the bare minimal server variables that are required for the application to start without being authenticated, /// we will load the rest of the server vars after the user is authenticated. /// - public static IHtmlString BareMinimumServerVariables(this HtmlHelper html, UrlHelper uri, string externalLoginsUrl) + public static IHtmlString BareMinimumServerVariablesScript(this HtmlHelper html, UrlHelper uri, string externalLoginsUrl) { var str = @""); return html.Raw(sb.ToString()); }