Browse Source
Merge pull request #24582 from abpframework/Home-Breadcrumb
Add ShowToolbar property to ContentLayout
pull/24638/head
Yağmur Çelik
3 weeks ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
5 additions and
6 deletions
-
framework/src/Volo.Abp.AspNetCore.Components.Web.Theming/Layout/PageLayout.cs
-
framework/src/Volo.Abp.AspNetCore.Mvc.UI/Volo/Abp/AspNetCore/Mvc/UI/Layout/ContentLayout.cs
|
|
|
@ -31,6 +31,8 @@ public class PageLayout : IScopedDependency, INotifyPropertyChanged |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public bool ShowToolbar { get; set; } = true; |
|
|
|
|
|
|
|
public virtual ObservableCollection<BreadcrumbItem> BreadcrumbItems { get; } = new(); |
|
|
|
|
|
|
|
public virtual ObservableCollection<PageToolbarItem> ToolbarItems { get; } = new(); |
|
|
|
|
|
|
|
@ -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; |
|
|
|
} |
|
|
|
} |
|
|
|
|