From 31609fb3e3afc8fb96d55906d359af8a99e27444 Mon Sep 17 00:00:00 2001 From: Anthony Stivers Date: Tue, 10 Jul 2018 15:56:47 -0400 Subject: [PATCH] [Fixes #1866] Fix ActivePage declarations * Fix missing activepage declarations * Change activepage declarations to correct values * Add missing ActivePage --- .../Areas/Identity/Pages/Account/Manage/ChangePassword.cshtml | 1 + .../Identity/Pages/Account/Manage/DeletePersonalData.cshtml | 2 +- .../Identity/Pages/Account/Manage/DownloadPersonalData.cshtml | 2 +- .../Areas/Identity/Pages/Account/Manage/ExternalLogins.cshtml | 1 + src/UI/Areas/Identity/Pages/Account/Manage/Index.cshtml | 1 + .../Pages/Account/Manage/TwoFactorAuthentication.cshtml | 1 + 6 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/UI/Areas/Identity/Pages/Account/Manage/ChangePassword.cshtml b/src/UI/Areas/Identity/Pages/Account/Manage/ChangePassword.cshtml index 7a51107ec1..c360b5b729 100644 --- a/src/UI/Areas/Identity/Pages/Account/Manage/ChangePassword.cshtml +++ b/src/UI/Areas/Identity/Pages/Account/Manage/ChangePassword.cshtml @@ -2,6 +2,7 @@ @model ChangePasswordModel @{ ViewData["Title"] = "Change password"; + ViewData["ActivePage"] = ManageNavPages.ChangePassword; }

@ViewData["Title"]

diff --git a/src/UI/Areas/Identity/Pages/Account/Manage/DeletePersonalData.cshtml b/src/UI/Areas/Identity/Pages/Account/Manage/DeletePersonalData.cshtml index e76617d469..eb1bc438ec 100644 --- a/src/UI/Areas/Identity/Pages/Account/Manage/DeletePersonalData.cshtml +++ b/src/UI/Areas/Identity/Pages/Account/Manage/DeletePersonalData.cshtml @@ -2,7 +2,7 @@ @model DeletePersonalDataModel @{ ViewData["Title"] = "Delete Personal Data"; - ViewData["ActivePage"] = ManageNavPages.DeletePersonalData; + ViewData["ActivePage"] = ManageNavPages.PersonalData; }

@ViewData["Title"]

diff --git a/src/UI/Areas/Identity/Pages/Account/Manage/DownloadPersonalData.cshtml b/src/UI/Areas/Identity/Pages/Account/Manage/DownloadPersonalData.cshtml index a4f5ca4814..fa300e7b38 100644 --- a/src/UI/Areas/Identity/Pages/Account/Manage/DownloadPersonalData.cshtml +++ b/src/UI/Areas/Identity/Pages/Account/Manage/DownloadPersonalData.cshtml @@ -2,7 +2,7 @@ @model DownloadPersonalDataModel @{ ViewData["Title"] = "Download Your Data"; - ViewData["ActivePage"] = ManageNavPages.DownloadPersonalData; + ViewData["ActivePage"] = ManageNavPages.PersonalData; }

@ViewData["Title"]

diff --git a/src/UI/Areas/Identity/Pages/Account/Manage/ExternalLogins.cshtml b/src/UI/Areas/Identity/Pages/Account/Manage/ExternalLogins.cshtml index 8ad0807a88..0426df2fa9 100644 --- a/src/UI/Areas/Identity/Pages/Account/Manage/ExternalLogins.cshtml +++ b/src/UI/Areas/Identity/Pages/Account/Manage/ExternalLogins.cshtml @@ -2,6 +2,7 @@ @model ExternalLoginsModel @{ ViewData["Title"] = "Manage your external logins"; + ViewData["ActivePage"] = ManageNavPages.ExternalLogins; } diff --git a/src/UI/Areas/Identity/Pages/Account/Manage/Index.cshtml b/src/UI/Areas/Identity/Pages/Account/Manage/Index.cshtml index 88578b4018..64447644b4 100644 --- a/src/UI/Areas/Identity/Pages/Account/Manage/Index.cshtml +++ b/src/UI/Areas/Identity/Pages/Account/Manage/Index.cshtml @@ -2,6 +2,7 @@ @model IndexModel @{ ViewData["Title"] = "Profile"; + ViewData["ActivePage"] = ManageNavPages.Index; }

@ViewData["Title"]

diff --git a/src/UI/Areas/Identity/Pages/Account/Manage/TwoFactorAuthentication.cshtml b/src/UI/Areas/Identity/Pages/Account/Manage/TwoFactorAuthentication.cshtml index ed4af0874e..e0773c39e1 100644 --- a/src/UI/Areas/Identity/Pages/Account/Manage/TwoFactorAuthentication.cshtml +++ b/src/UI/Areas/Identity/Pages/Account/Manage/TwoFactorAuthentication.cshtml @@ -2,6 +2,7 @@ @model TwoFactorAuthenticationModel @{ ViewData["Title"] = "Two-factor authentication (2FA)"; + ViewData["ActivePage"] = ManageNavPages.TwoFactorAuthentication; }