File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed
DigitalLearningSolutions.Web Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ IMultiPageFormService multiPageFormService
3737 public IActionResult Index ( string sourceUrl , string sourcePageTitle )
3838 {
3939 ViewData [ LayoutViewDataKeys . DoNotDisplayUserFeedbackBar ] = true ;
40-
40+ ViewBag . HideSwitchApplication = true ;
4141 _multiPageFormService . ClearMultiPageFormData ( MultiPageFormDataFeature . AddUserFeedback , TempData ) ;
4242
4343 _userFeedbackViewModel = new ( )
@@ -122,6 +122,7 @@ private string DeriveUserRoles()
122122 public IActionResult StartUserFeedbackSession ( UserFeedbackViewModel userFeedbackViewModel )
123123 {
124124 ViewData [ LayoutViewDataKeys . DoNotDisplayUserFeedbackBar ] = true ;
125+ ViewBag . HideSwitchApplication = true ;
125126
126127 var userFeedbackSessionData = new UserFeedbackTempData ( )
127128 {
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 ?)ViewBag .HideSwitchApplication == false )
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+ }
147150 }
148151 </ul >
149152 </div >
You can’t perform that action at this time.
0 commit comments