mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-13 21:13:07 +00:00
69920: Move collection create route on top of ID + fix non-static ViewChild
This commit is contained in:
@@ -34,6 +34,11 @@ const COLLECTION_EDIT_PATH = 'edit';
|
|||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
RouterModule.forChild([
|
RouterModule.forChild([
|
||||||
|
{
|
||||||
|
path: COLLECTION_CREATE_PATH,
|
||||||
|
component: CreateCollectionPageComponent,
|
||||||
|
canActivate: [AuthenticatedGuard, CreateCollectionPageGuard]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: ':id',
|
path: ':id',
|
||||||
resolve: {
|
resolve: {
|
||||||
@@ -65,11 +70,6 @@ const COLLECTION_EDIT_PATH = 'edit';
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
|
||||||
path: COLLECTION_CREATE_PATH,
|
|
||||||
component: CreateCollectionPageComponent,
|
|
||||||
canActivate: [AuthenticatedGuard, CreateCollectionPageGuard]
|
|
||||||
},
|
|
||||||
])
|
])
|
||||||
],
|
],
|
||||||
providers: [
|
providers: [
|
||||||
|
@@ -39,7 +39,7 @@ export class ComColFormComponent<T extends DSpaceObject> implements OnInit, OnDe
|
|||||||
/**
|
/**
|
||||||
* The logo uploader component
|
* The logo uploader component
|
||||||
*/
|
*/
|
||||||
@ViewChild(UploaderComponent, {static: true}) uploaderComponent: UploaderComponent;
|
@ViewChild(UploaderComponent, {static: false}) uploaderComponent: UploaderComponent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* DSpaceObject that the form represents
|
* DSpaceObject that the form represents
|
||||||
|
Reference in New Issue
Block a user