mirror of https://github.com/abpframework/abp.git
8 changed files with 17 additions and 64 deletions
@ -1,34 +0,0 @@ |
|||||
using System.Threading.Tasks; |
|
||||
using Microsoft.Extensions.DependencyInjection; |
|
||||
using Microsoft.Extensions.Localization; |
|
||||
using MyCompanyName.MyProjectName.Localization; |
|
||||
using MyCompanyName.MyProjectName.MultiTenancy; |
|
||||
using Volo.Abp.TenantManagement.Web.Navigation; |
|
||||
using Volo.Abp.UI.Navigation; |
|
||||
|
|
||||
namespace MyCompanyName.MyProjectName.Menus |
|
||||
{ |
|
||||
public class MyProjectNameMenuContributor : IMenuContributor |
|
||||
{ |
|
||||
public async Task ConfigureMenuAsync(MenuConfigurationContext context) |
|
||||
{ |
|
||||
if (context.Menu.Name == StandardMenus.Main) |
|
||||
{ |
|
||||
await ConfigureMainMenuAsync(context); |
|
||||
} |
|
||||
} |
|
||||
|
|
||||
private async Task ConfigureMainMenuAsync(MenuConfigurationContext context) |
|
||||
{ |
|
||||
if (!MultiTenancyConsts.IsEnabled) |
|
||||
{ |
|
||||
var administration = context.Menu.GetAdministration(); |
|
||||
administration.TryRemoveMenuItem(TenantManagementMenuNames.GroupName); |
|
||||
} |
|
||||
|
|
||||
var l = context.ServiceProvider.GetRequiredService<IStringLocalizer<MyProjectNameResource>>(); |
|
||||
|
|
||||
context.Menu.Items.Insert(0, new ApplicationMenuItem("MyProjectName.Home", l["Menu:Home"], "/")); |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
@ -1,3 +0,0 @@ |
|||||
body { |
|
||||
|
|
||||
} |
|
||||
@ -1,3 +0,0 @@ |
|||||
$(function () { |
|
||||
abp.log.debug('Index.js initialized!'); |
|
||||
}); |
|
||||
Loading…
Reference in new issue