Browse Source
Add ShowToolbar property to ContentLayout
pull/24582/head
maliming
4 weeks ago
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4
1 changed files with
3 additions and
6 deletions
-
framework/src/Volo.Abp.AspNetCore.Mvc.UI/Volo/Abp/AspNetCore/Mvc/UI/Layout/ContentLayout.cs
|
|
|
@ -11,6 +11,8 @@ public class ContentLayout |
|
|
|
|
|
|
|
public string? MenuItemName { get; set; } |
|
|
|
|
|
|
|
public bool ShowToolbar { get; set; } = true; |
|
|
|
|
|
|
|
public ContentLayout() |
|
|
|
{ |
|
|
|
BreadCrumb = new BreadCrumb(); |
|
|
|
@ -23,11 +25,6 @@ public class ContentLayout |
|
|
|
return true; |
|
|
|
} |
|
|
|
|
|
|
|
if (BreadCrumb.ShowCurrent && !Title.IsNullOrEmpty()) |
|
|
|
{ |
|
|
|
return true; |
|
|
|
} |
|
|
|
|
|
|
|
return false; |
|
|
|
return BreadCrumb.ShowCurrent || BreadCrumb.ShowHome; |
|
|
|
} |
|
|
|
} |
|
|
|
|