Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CON-1631-add cobrowsing snippet key. #2055

Merged
merged 1 commit into from
Apr 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ public static string GetZenDeskSnippetSectionId(this HtmlHelper html)
var configuration = DependencyResolver.Current.GetService<EmployerAccountsConfiguration>();
return configuration.ZenDeskSectionId;
}
public static string GetZenDeskCobrowsingSnippetKey(this HtmlHelper html)
{
var configuration = DependencyResolver.Current.GetService<EmployerAccountsConfiguration>();
return configuration.ZenDeskCobrowsingSnippetKey;
}

public static IHeaderViewModel GetHeaderViewModel(this HtmlHelper html, bool useLegacyStyles = false)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
};
</script>
<script id="ze-snippet" src="https://static.zdassets.com/ekr/[email protected]()"></script>
<script id="co-snippet" src="https://embed-euw1.rcrsv.io/@Html.GetZenDeskCobrowsingSnippetKey()?zwwi=1"></script>
@Html.SetZenDeskLabels(new string[] { ViewBag.ZenDeskLabel })


Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public class EmployerAccountsConfiguration : ITopicMessagePublisherConfiguration
public string AdfsMetadata { get; set; }
public string ZenDeskSnippetKey { get; set; }
public string ZenDeskSectionId { get; set; }
public string ZenDeskCobrowsingSnippetKey { get; set; }
public CommitmentsApiV2ClientConfiguration CommitmentsApi { get; set; }
public RecruitClientApiConfiguration RecruitApi { get; set; }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,11 @@ public static string GetZenDeskSnippetSectionId(this HtmlHelper html)
var configuration = DependencyResolver.Current.GetService<EmployerFinanceConfiguration>();
return configuration.ZenDeskSectionId;
}

public static string GetZenDeskCobrowsingSnippetKey(this HtmlHelper html)
{
var configuration = DependencyResolver.Current.GetService<EmployerFinanceConfiguration>();
return configuration.ZenDeskCobrowsingSnippetKey;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@
};
</script>
<script id="ze-snippet" src="https://static.zdassets.com/ekr/[email protected]()"></script>
<script id="co-snippet" src="https://embed-euw1.rcrsv.io/@Html.GetZenDeskCobrowsingSnippetKey()?zwwi=1"></script>
@Html.SetZenDeskLabels(new string[] { ViewBag.ZenDeskLabel })
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,6 @@ public class EmployerFinanceConfiguration : ITopicMessagePublisherConfiguration
public string ZenDeskHelpCentreUrl { get; set; }
public string ZenDeskSnippetKey { get; set; }
public string ZenDeskSectionId { get; set; }
public string ZenDeskCobrowsingSnippetKey { get; set; }
}
}