Skip to content

Commit 952d106

Browse files
committed
TD-6182: Fixed issues with preloading place of work details and removed user icon.
1 parent d0e3b4f commit 952d106

File tree

3 files changed

+2
-50
lines changed

3 files changed

+2
-50
lines changed

LearningHub.Nhs.WebUI/Controllers/LoginWizardController.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ public async Task<IActionResult> Index(string returnUrl)
177177
PrimarySpecialtyId = userEmployment.SpecialtyId.HasValue ? userEmployment.SpecialtyId.ToString() : null,
178178
RegistrationNumber = userEmployment.MedicalCouncilNo,
179179
StartDate = userEmployment.StartDate.HasValue ? userEmployment.StartDate.Value.DateTime : null,
180+
LocationId = userEmployment.LocationId.ToString(),
180181
};
181182

182183
await this.multiPageFormService.SetMultiPageFormData(

LearningHub.Nhs.WebUI/Styles/nhsuk/layout.scss

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -121,16 +121,6 @@ body {
121121
gap: px2rem(24);
122122
}
123123

124-
.nhsuk-account__myaccount {
125-
float: right;
126-
position: relative;
127-
z-index: 2;
128-
display: flex;
129-
justify-content: space-between;
130-
align-items: center;
131-
gap: px2rem(8);
132-
}
133-
134124
.nhsuk-header__notification-dot {
135125
position: absolute;
136126
top: px2rem(8);

LearningHub.Nhs.WebUI/Views/Shared/Components/NavigationItems/Topnav.cshtml

Lines changed: 1 addition & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,7 @@
88
<!-- start Topnav -->
99
@if (Model.ShowMyAccount)
1010
{
11-
<div class="nhsuk-account__myaccount">
12-
<svg xmlns="http://www.w3.org/2000/svg" width="26" height="26" viewBox="0 0 26 26" fill="none">
13-
<g clip-path="url(#clip0_5102_1890)">
14-
<path d="M12.9984 14.7859C10.4797 14.7859 8.36719 12.7547 8.36719 10.1547C8.36719 7.55469 10.3984 5.52344 12.9984 5.52344C15.5172 5.52344 17.6297 7.55469 17.6297 10.1547C17.6297 12.7547 15.5172 14.7859 12.9984 14.7859Z" fill="white" />
15-
<path d="M13 0C5.85 0 0 5.85 0 13C0 20.15 5.85 26 13 26C20.15 26 26 20.15 26 13C26 5.85 20.15 0 13 0ZM19.5813 22.3438V21.125C19.5813 18.2812 17.55 16.0063 14.95 16.0063H11.05C8.53125 15.925 6.5 18.2812 6.5 21.125V22.425C1.3 18.7688 0 11.6188 3.65625 6.5C7.3125 1.38125 14.3812 0 19.5 3.65625C24.6187 7.3125 26 14.3812 22.3438 19.5C21.6125 20.6375 20.6375 21.6125 19.5813 22.3438Z" fill="white" />
16-
</g>
17-
<defs>
18-
<clipPath id="clip0_5102_1890">
19-
<rect width="26" height="26" fill="white" />
20-
</clipPath>
21-
</defs>
22-
</svg>
23-
@if (Model.NotificationCount > 0)
24-
{
25-
<div class="nhsuk-header__notification-dot">@NotificationDisplay()</div>
26-
27-
}
28-
29-
3011
<a class="nhsuk-account__login--link" asp-controller="Myaccount" asp-action="Index">My account</a>
31-
</div>
3212
}
3313
@if (Model.ShowSignOut)
3414
{
@@ -39,23 +19,4 @@
3919
<a class="nhsuk-account__login--link" href="@(settings.Value.SupportUrls.SupportSite)" target="_blank">Help</a>
4020
} *@
4121

42-
<!-- end Topnav -->
43-
@functions {
44-
public string NotificationDisplay()
45-
{
46-
if (Model.NotificationCount < 1)
47-
{
48-
return "";
49-
}
50-
51-
var returnString = Model.NotificationCount.ToString();
52-
53-
if (Model.NotificationCount > 9)
54-
{
55-
returnString = "9+";
56-
}
57-
58-
return returnString;
59-
60-
}
61-
}
22+
<!-- end Topnav -->

0 commit comments

Comments
 (0)