Skip to content

Commit

Permalink
Merge pull request #19499 from abpframework/maliming-patch-3
Browse files Browse the repository at this point in the history
Update `WebAppTiered`'s `MenuContributor`.
  • Loading branch information
realLiangshiwei authored Apr 4, 2024
2 parents c52fe5b + 0bc6c65 commit 264f0a5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Threading.Tasks;
using System;
using System.Threading.Tasks;
using Microsoft.Extensions.Configuration;
using MyCompanyName.MyProjectName.Localization;
using MyCompanyName.MyProjectName.MultiTenancy;
Expand Down Expand Up @@ -67,13 +68,14 @@ private Task ConfigureUserMenuAsync(MenuConfigurationContext context)
{
var accountStringLocalizer = context.GetLocalizer<AccountResource>();

var authServerUrl = _configuration["AuthServer:Authority"] ?? "";
context.Menu.AddItem(new ApplicationMenuItem(
"Account.Manage",
accountStringLocalizer["MyAccount"],
$"Account/Manage",
$"{authServerUrl.EnsureEndsWith('/')}Account/Manage",
icon: "fa fa-cog",
order: 1000,
null).RequireAuthenticated());
target: "_blank").RequireAuthenticated());

return Task.CompletedTask;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
"BaseUrl": "https://localhost:44300"
}
},
"AuthServer": {
"Authority": "https://localhost:44301"
},
"AbpCli": {
"Bundle": {
"Mode": "BundleAndMinify", /* Options: None, Bundle, BundleAndMinify */
Expand Down

0 comments on commit 264f0a5

Please sign in to comment.