maliming
3 years ago
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4
2 changed files with
2 additions and
2 deletions
-
framework/src/Volo.Abp.AspNetCore.Mvc.UI/Volo/Abp/AspNetCore/Mvc/UI/Components/LayoutHook/LayoutHookViewComponent.cs
-
framework/src/Volo.Abp.AspNetCore.Mvc.UI/Volo/Abp/AspNetCore/Mvc/UI/Components/LayoutHook/ViewComponentHelperLayoutHookExtensions.cs
|
|
@ -16,7 +16,7 @@ public class LayoutHookViewComponent : AbpViewComponent |
|
|
Options = options.Value; |
|
|
Options = options.Value; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public virtual IViewComponentResult Invoke(string name, string layout) |
|
|
public virtual IViewComponentResult Invoke(string name, string? layout) |
|
|
{ |
|
|
{ |
|
|
var hooks = Options.Hooks.GetOrDefault(name)? |
|
|
var hooks = Options.Hooks.GetOrDefault(name)? |
|
|
.Where(IsViewComponent) |
|
|
.Where(IsViewComponent) |
|
|
|
|
|
@ -9,7 +9,7 @@ public static class ViewComponentHelperLayoutHookExtensions |
|
|
public static Task<IHtmlContent> InvokeLayoutHookAsync( |
|
|
public static Task<IHtmlContent> InvokeLayoutHookAsync( |
|
|
this IViewComponentHelper componentHelper, |
|
|
this IViewComponentHelper componentHelper, |
|
|
string name, |
|
|
string name, |
|
|
string layout) |
|
|
string? layout = null) |
|
|
{ |
|
|
{ |
|
|
return componentHelper.InvokeAsync( |
|
|
return componentHelper.InvokeAsync( |
|
|
typeof(LayoutHookViewComponent), |
|
|
typeof(LayoutHookViewComponent), |
|
|
|