mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
Merge pull request #640 from atmire/broken-create-community
Broken create community
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: {
|
||||||
@@ -66,11 +71,6 @@ const COLLECTION_EDIT_PATH = 'edit';
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
|
||||||
path: COLLECTION_CREATE_PATH,
|
|
||||||
component: CreateCollectionPageComponent,
|
|
||||||
canActivate: [AuthenticatedGuard, CreateCollectionPageGuard]
|
|
||||||
},
|
|
||||||
])
|
])
|
||||||
],
|
],
|
||||||
providers: [
|
providers: [
|
||||||
|
@@ -33,6 +33,11 @@ const COMMUNITY_EDIT_PATH = 'edit';
|
|||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
RouterModule.forChild([
|
RouterModule.forChild([
|
||||||
|
{
|
||||||
|
path: COMMUNITY_CREATE_PATH,
|
||||||
|
component: CreateCommunityPageComponent,
|
||||||
|
canActivate: [AuthenticatedGuard, CreateCommunityPageGuard]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: ':id',
|
path: ':id',
|
||||||
resolve: {
|
resolve: {
|
||||||
@@ -59,11 +64,6 @@ const COMMUNITY_EDIT_PATH = 'edit';
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
|
||||||
path: COMMUNITY_CREATE_PATH,
|
|
||||||
component: CreateCommunityPageComponent,
|
|
||||||
canActivate: [AuthenticatedGuard, CreateCommunityPageGuard]
|
|
||||||
},
|
|
||||||
])
|
])
|
||||||
],
|
],
|
||||||
providers: [
|
providers: [
|
||||||
|
@@ -137,7 +137,7 @@ describe('ComColFormComponent', () => {
|
|||||||
type: Community.type
|
type: Community.type
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
uploader: {} as any,
|
uploader: undefined,
|
||||||
deleteLogo: false
|
deleteLogo: false
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
@@ -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