File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed
DigitalLearningSolutions.Web Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ IMultiPageFormService multiPageFormService
3737 public IActionResult Index ( string sourceUrl , string sourcePageTitle )
3838 {
3939 ViewData [ LayoutViewDataKeys . DoNotDisplayUserFeedbackBar ] = true ;
40-
4140 _multiPageFormService . ClearMultiPageFormData ( MultiPageFormDataFeature . AddUserFeedback , TempData ) ;
4241
4342 _userFeedbackViewModel = new ( )
Original file line number Diff line number Diff line change 138138
139139 @if (User .IsAdminAccount ())
140140 {
141- <li class =" nhsuk-header__navigation-item @Html.GetSelectedCssClassIfTabSelected(NavMenuTab.SwitchApplication)" >
142- <a class =" nhsuk-header__navigation-link" asp-controller =" ApplicationSelector" asp-action =" Index" >
143- Switch application
144- <partial name =" _NhsChevronRight" />
145- </a >
146- </li >
141+ if ((bool ?)ViewData [LayoutViewDataKeys .DoNotDisplayUserFeedbackBar ] != true )
142+ {
143+ < li class = " nhsuk-header__navigation-item @Html.GetSelectedCssClassIfTabSelected(NavMenuTab.SwitchApplication)" >
144+ < a class = " nhsuk-header__navigation-link" asp - controller = " ApplicationSelector" asp - action = " Index" >
145+ Switch application
146+ < partial name = " _NhsChevronRight" / >
147+ < / a >
148+ < / li >
149+ }
150+
147151 }
148152 </ul >
149153 </div >
You can’t perform that action at this time.
0 commit comments