Skip to content

Commit bc00165

Browse files
Sufiyan ShaikhYevhenii-Lohatskyi
authored andcommitted
[DSC-909] Make Communities and Collections menu available in the Admin menu bar
1 parent 2869c17 commit bc00165

2 files changed

Lines changed: 26 additions & 1 deletion

File tree

src/app/menu.resolver.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,31 @@ export class MenuResolver implements Resolve<boolean> {
271271
this.authorizationService.isAuthorized(FeatureID.CanEditItem),
272272
]).subscribe(([isCollectionAdmin, isCommunityAdmin, isSiteAdmin, canSubmit, canEditItem]) => {
273273
const newSubMenuList = [
274+
/* Communities and Collections */
275+
{
276+
id: `browse_global_communities_and_collections`,
277+
active: false,
278+
visible: !environment.layout.navbar.showCommunityCollection && isCollectionAdmin,
279+
model: {
280+
type: MenuItemType.LINK,
281+
text: `menu.section.communities_and_collections`,
282+
link: `/community-list`
283+
} as LinkMenuItemModel,
284+
icon: 'users',
285+
index: 0
286+
},
287+
/* News */
288+
{
289+
id: 'new',
290+
active: false,
291+
visible: isCollectionAdmin || isCommunityAdmin || isSiteAdmin,
292+
model: {
293+
type: MenuItemType.TEXT,
294+
text: 'menu.section.new'
295+
} as TextMenuItemModel,
296+
icon: 'plus',
297+
index: 0
298+
},
274299
{
275300
id: 'new_community',
276301
parentID: 'new',

src/config/default-app-config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ export class DefaultAppConfig implements AppConfig {
596596
layout: LayoutConfig = {
597597
navbar: {
598598
// If true, show the "Community and Collections" link in the navbar; otherwise, show it in the admin sidebar
599-
showCommunityCollection: true,
599+
showCommunityCollection: false,
600600
}
601601
};
602602

0 commit comments

Comments
 (0)