Skip to content

Commit

Permalink
Add top level Multi Tenancy menu (#12671)
Browse files Browse the repository at this point in the history
Add top level Multi Tenancy menu and Move tenants and Tenant feature profile under Multi Tenancy menu.
Fixes #12670
  • Loading branch information
ns8482e authored May 20, 2023
1 parent 61aab5a commit 21db149
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
6 changes: 4 additions & 2 deletions src/OrchardCore.Modules/OrchardCore.Tenants/AdminMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,15 @@ public Task BuildNavigationAsync(string name, NavigationBuilder builder)
}

builder
.Add(S["Configuration"], configuration => configuration
.Add(S["Multi-Tenancy"], "after", tenancy => tenancy
.AddClass("menu-multitenancy")
.Id("multitenancy")
.Add(S["Tenants"], S["Tenants"].PrefixPosition(), tenant => tenant
.Action("Index", "Admin", new { area = "OrchardCore.Tenants" })
.Permission(Permissions.ManageTenants)
.LocalNav()
)
);
, priority: 1);

return Task.CompletedTask;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ public Task BuildNavigationAsync(string name, NavigationBuilder builder)
}

builder
.Add(S["Configuration"], configuration => configuration
.AddClass("menu-configuration").Id("configuration")
.Add(S["Tenant Feature Profiles"], S["Tenant Feature Profiles"].PrefixPosition(), featureProfiles => featureProfiles
.Add(S["Multi-Tenancy"], tenancy => tenancy
.AddClass("menu-multitenancy")
.Add(S["Feature Profiles"], S["Feature Profiles"].PrefixPosition(), featureProfiles => featureProfiles
.Action("Index", "FeatureProfiles", new { area = "OrchardCore.Tenants" })
.Permission(Permissions.ManageTenantFeatureProfiles)
.LocalNav()
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<span class="icon" style="padding:0 10px;"><span class="material-icons">domain</span></span><span class="title">@Model.Text</span>

0 comments on commit 21db149

Please sign in to comment.