Browse Source
Merge pull request #6459 from wakuflair/add-async-suffix
Add "Async" suffix to `ConfigureMainMenu` method
pull/6482/head
liangshiwei
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with
15 additions and
15 deletions
-
modules/blogging/src/Volo.Blogging.Admin.Web/BloggingAdminMenuContributor.cs
-
modules/cms-kit/src/Volo.CmsKit.Admin.Web/Menus/CmsKitAdminMenuContributor.cs
-
modules/cms-kit/src/Volo.CmsKit.Public.Web/Menus/CmsKitPublicMenuContributor.cs
-
modules/docs/src/Volo.Docs.Admin.Web/Navigation/DocsMenuContributor.cs
-
modules/setting-management/src/Volo.Abp.SettingManagement.Blazor/Menus/SettingManagementMenuContributor.cs
-
templates/module/aspnet-core/src/MyCompanyName.MyProjectName.Blazor/Menus/MyProjectNameMenuContributor.cs
-
templates/module/aspnet-core/src/MyCompanyName.MyProjectName.Web/Menus/MyProjectNameMenuContributor.cs
|
|
|
@ -10,11 +10,11 @@ namespace Volo.Blogging.Admin |
|
|
|
{ |
|
|
|
if (context.Menu.Name == StandardMenus.Main) |
|
|
|
{ |
|
|
|
await ConfigureMainMenu(context); |
|
|
|
await ConfigureMainMenuAsync(context); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
private async Task ConfigureMainMenu(MenuConfigurationContext context) |
|
|
|
private async Task ConfigureMainMenuAsync(MenuConfigurationContext context) |
|
|
|
{ |
|
|
|
var l = context.GetLocalizer<BloggingResource>(); |
|
|
|
|
|
|
|
|
|
|
|
@ -9,11 +9,11 @@ namespace Volo.CmsKit.Admin.Web.Menus |
|
|
|
{ |
|
|
|
if (context.Menu.Name == StandardMenus.Main) |
|
|
|
{ |
|
|
|
await ConfigureMainMenu(context); |
|
|
|
await ConfigureMainMenuAsync(context); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
private Task ConfigureMainMenu(MenuConfigurationContext context) |
|
|
|
private Task ConfigureMainMenuAsync(MenuConfigurationContext context) |
|
|
|
{ |
|
|
|
//Add main menu items.
|
|
|
|
|
|
|
|
|
|
|
|
@ -9,11 +9,11 @@ namespace Volo.CmsKit.Public.Web.Menus |
|
|
|
{ |
|
|
|
if (context.Menu.Name == StandardMenus.Main) |
|
|
|
{ |
|
|
|
await ConfigureMainMenu(context); |
|
|
|
await ConfigureMainMenuAsync(context); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
private Task ConfigureMainMenu(MenuConfigurationContext context) |
|
|
|
private Task ConfigureMainMenuAsync(MenuConfigurationContext context) |
|
|
|
{ |
|
|
|
//Add main menu items.
|
|
|
|
|
|
|
|
|
|
|
|
@ -13,11 +13,11 @@ namespace Volo.Docs.Admin.Navigation |
|
|
|
{ |
|
|
|
if (context.Menu.Name == StandardMenus.Main) |
|
|
|
{ |
|
|
|
await ConfigureMainMenu(context); |
|
|
|
await ConfigureMainMenuAsync(context); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
private async Task ConfigureMainMenu(MenuConfigurationContext context) |
|
|
|
private async Task ConfigureMainMenuAsync(MenuConfigurationContext context) |
|
|
|
{ |
|
|
|
var administrationMenu = context.Menu.GetAdministration(); |
|
|
|
|
|
|
|
|
|
|
|
@ -13,11 +13,11 @@ namespace Volo.Abp.SettingManagement.Blazor.Menus |
|
|
|
{ |
|
|
|
if (context.Menu.Name == StandardMenus.Main) |
|
|
|
{ |
|
|
|
await ConfigureMainMenu(context); |
|
|
|
await ConfigureMainMenuAsync(context); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
private async Task ConfigureMainMenu(MenuConfigurationContext context) |
|
|
|
private async Task ConfigureMainMenuAsync(MenuConfigurationContext context) |
|
|
|
{ |
|
|
|
var settingManagementPageOptions = context.ServiceProvider.GetRequiredService<IOptions<SettingManagementComponentOptions>>().Value; |
|
|
|
var settingPageCreationContext = new SettingComponentCreationContext(context.ServiceProvider); |
|
|
|
@ -42,7 +42,7 @@ namespace Volo.Abp.SettingManagement.Blazor.Menus |
|
|
|
) |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected virtual async Task<bool> CheckAnyOfPagePermissionsGranted( |
|
|
|
SettingManagementComponentOptions settingManagementComponentOptions, |
|
|
|
SettingComponentCreationContext settingComponentCreationContext) |
|
|
|
|
|
|
|
@ -9,11 +9,11 @@ namespace MyCompanyName.MyProjectName.Blazor.Menus |
|
|
|
{ |
|
|
|
if (context.Menu.Name == StandardMenus.Main) |
|
|
|
{ |
|
|
|
await ConfigureMainMenu(context); |
|
|
|
await ConfigureMainMenuAsync(context); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
private Task ConfigureMainMenu(MenuConfigurationContext context) |
|
|
|
private Task ConfigureMainMenuAsync(MenuConfigurationContext context) |
|
|
|
{ |
|
|
|
//Add main menu items.
|
|
|
|
|
|
|
|
|
|
|
|
@ -9,11 +9,11 @@ namespace MyCompanyName.MyProjectName.Web.Menus |
|
|
|
{ |
|
|
|
if (context.Menu.Name == StandardMenus.Main) |
|
|
|
{ |
|
|
|
await ConfigureMainMenu(context); |
|
|
|
await ConfigureMainMenuAsync(context); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
private Task ConfigureMainMenu(MenuConfigurationContext context) |
|
|
|
private Task ConfigureMainMenuAsync(MenuConfigurationContext context) |
|
|
|
{ |
|
|
|
//Add main menu items.
|
|
|
|
|
|
|
|
|