Skip to content

Commit

Permalink
Remove link to favourites on the Employer dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmking committed Jan 21, 2021
1 parent 9f42bd5 commit 5c39c1f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,6 @@ public static string LegacyEasAction(this UrlHelper helper, string path)
return Action(baseUrl, path);
}

public static string FavouritesAction(this UrlHelper helper, string path = "")
{
var configuration = DependencyResolver.Current.GetService<EmployerAccountsConfiguration>();
var baseUrl = configuration.EmployerFavouritesBaseUrl;

return AccountAction(helper, baseUrl, path);
}

private static string AccountAction(UrlHelper helper, string baseUrl, string path)
{
var hashedAccountId = helper.RequestContext.RouteData.Values[ControllerConstants.AccountHashedIdRouteKeyName];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,6 @@
</h1>
<p class="heading-xlarge dashboard-heading-company">@Model.Data.Account.Name</p>

<a href="@Url.FavouritesAction("apprenticeships")" class="das-favourites-link govuk-body">
<span class="das-favourites-link__icon">
<svg class="icon" focusable="false" aria-hidden="true">
<use xlink:href="#icon-favourite" />
</svg>
</span>
<span class="das-favourites-link__text">View saved favourites</span>
</a>

<hr class="dashboard-heading-separator" />

@if (!Model.Data.HasPayeScheme && Model.Data.OrganisationCount == 0)
Expand Down

0 comments on commit 5c39c1f

Please sign in to comment.