mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
112970: Added missing breadcrumbs to create community/collection pages
This commit is contained in:
@@ -14,14 +14,32 @@ import { CommunityPageAdministratorGuard } from './community-page-administrator.
|
||||
import { LinkMenuItemModel } from '../shared/menu/menu-item/models/link.model';
|
||||
import { ThemedCommunityPageComponent } from './themed-community-page.component';
|
||||
import { MenuItemType } from '../shared/menu/menu-item-type.model';
|
||||
import { I18nBreadcrumbResolver } from '../core/breadcrumbs/i18n-breadcrumb.resolver';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
RouterModule.forChild([
|
||||
{
|
||||
path: COMMUNITY_CREATE_PATH,
|
||||
component: CreateCommunityPageComponent,
|
||||
canActivate: [AuthenticatedGuard, CreateCommunityPageGuard]
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
component: CreateCommunityPageComponent,
|
||||
resolve: {
|
||||
breadcrumb: I18nBreadcrumbResolver,
|
||||
},
|
||||
data: {
|
||||
breadcrumbKey: 'community.create',
|
||||
},
|
||||
}
|
||||
],
|
||||
canActivate: [AuthenticatedGuard, CreateCommunityPageGuard],
|
||||
data: {
|
||||
breadcrumbQueryParam: 'parent',
|
||||
},
|
||||
resolve: {
|
||||
breadcrumb: CommunityBreadcrumbResolver,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: ':id',
|
||||
|
Reference in New Issue
Block a user