mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
[CST-5253] Fix view item button for workspace items in the mydspace results list
This commit is contained in:
@@ -6,32 +6,40 @@ import { ThemedSubmissionEditComponent } from '../submission/edit/themed-submiss
|
||||
import { I18nBreadcrumbResolver } from '../core/breadcrumbs/i18n-breadcrumb.resolver';
|
||||
import { ThemedFullItemPageComponent } from '../item-page/full/themed-full-item-page.component';
|
||||
import { ItemFromWorkspaceResolver } from './item-from-workspace.resolver';
|
||||
import { WorkspaceItemPageResolver } from './workspace-item-page.resolver';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
RouterModule.forChild([
|
||||
{ path: '', redirectTo: '/home', pathMatch: 'full' },
|
||||
{
|
||||
canActivate: [AuthenticatedGuard],
|
||||
path: ':id/edit',
|
||||
component: ThemedSubmissionEditComponent,
|
||||
resolve: {
|
||||
breadcrumb: I18nBreadcrumbResolver
|
||||
},
|
||||
data: { title: 'submission.edit.title', breadcrumbKey: 'submission.edit' }
|
||||
},
|
||||
{
|
||||
canActivate: [AuthenticatedGuard],
|
||||
path: ':id/view',
|
||||
component: ThemedFullItemPageComponent,
|
||||
resolve: {
|
||||
dso: ItemFromWorkspaceResolver,
|
||||
breadcrumb: I18nBreadcrumbResolver
|
||||
},
|
||||
data: { title: 'workspace-item.view.title', breadcrumbKey: 'workspace-item.view' }
|
||||
},
|
||||
path: ':id',
|
||||
resolve: { wsi: WorkspaceItemPageResolver },
|
||||
children: [
|
||||
{
|
||||
canActivate: [AuthenticatedGuard],
|
||||
path: 'edit',
|
||||
component: ThemedSubmissionEditComponent,
|
||||
resolve: {
|
||||
breadcrumb: I18nBreadcrumbResolver
|
||||
},
|
||||
data: { title: 'submission.edit.title', breadcrumbKey: 'submission.edit' }
|
||||
},
|
||||
{
|
||||
canActivate: [AuthenticatedGuard],
|
||||
path: 'view',
|
||||
component: ThemedFullItemPageComponent,
|
||||
resolve: {
|
||||
dso: ItemFromWorkspaceResolver,
|
||||
breadcrumb: I18nBreadcrumbResolver
|
||||
},
|
||||
data: { title: 'workspace-item.view.title', breadcrumbKey: 'workspace-item.view' }
|
||||
}
|
||||
]
|
||||
}
|
||||
])
|
||||
]
|
||||
],
|
||||
providers: [WorkspaceItemPageResolver, ItemFromWorkspaceResolver]
|
||||
})
|
||||
/**
|
||||
* This module defines the default component to load when navigating to the workspaceitems edit page path
|
||||
|
Reference in New Issue
Block a user