Skip to content

Commit

Permalink
Merge pull request #67 from Lombiq/issue/SPAL-15
Browse files Browse the repository at this point in the history
SPAL-15: Use NavigationItemBuilder.SiteSettings extension
  • Loading branch information
Psichorex authored Jun 25, 2023
2 parents bd55b87 + 11393d6 commit 84c57d7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using Lombiq.HelpfulLibraries.OrchardCore.Navigation;
using Microsoft.Extensions.Localization;
using OrchardCore.CustomSettings;
using OrchardCore.CustomSettings.Services;
Expand Down Expand Up @@ -36,7 +37,7 @@ public Task BuildNavigationAsync(string name, NavigationBuilder builder)
.Add(T["Configuration"], configuration => configuration
.Add(T["Settings"], settings => settings
.Add(new LocalizedString(type.DisplayName, type.DisplayName), type.DisplayName.PrefixPosition(), layers => layers
.Action("Index", "Admin", new { area = "OrchardCore.Settings", groupId = type.Name })
.SiteSettings(type.Name)
.Permission(Permissions.CreatePermissionForType(type))
.Resource(type.Name)
.AddClass(type.Name)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using Lombiq.HelpfulLibraries.OrchardCore.Navigation;
using Microsoft.Extensions.Localization;
using OrchardCore.CustomSettings;
using OrchardCore.CustomSettings.Services;
Expand Down Expand Up @@ -36,7 +37,7 @@ public Task BuildNavigationAsync(string name, NavigationBuilder builder)
.Add(T["Configuration"], configuration => configuration
.Add(T["Settings"], settings => settings
.Add(new LocalizedString(type.DisplayName, type.DisplayName), type.DisplayName.PrefixPosition(), layers => layers
.Action("Index", "Admin", new { area = "OrchardCore.Settings", groupId = type.Name })
.SiteSettings(type.Name)
.Permission(Permissions.CreatePermissionForType(type))
.Resource(type.Name)
.AddClass(type.Name)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using Lombiq.HelpfulLibraries.OrchardCore.Navigation;
using Microsoft.Extensions.Localization;
using OrchardCore.CustomSettings;
using OrchardCore.CustomSettings.Services;
Expand Down Expand Up @@ -36,7 +37,7 @@ public Task BuildNavigationAsync(string name, NavigationBuilder builder)
.Add(T["Configuration"], configuration => configuration
.Add(T["Settings"], settings => settings
.Add(new LocalizedString(type.DisplayName, type.DisplayName), type.DisplayName.PrefixPosition(), layers => layers
.Action("Index", "Admin", new { area = "OrchardCore.Settings", groupId = type.Name })
.SiteSettings(type.Name)
.Permission(Permissions.CreatePermissionForType(type))
.Resource(type.Name)
.AddClass(type.Name)
Expand Down

0 comments on commit 84c57d7

Please sign in to comment.