no message
This commit is contained in:
parent
d7a4264af7
commit
d1c9d00ba7
|
@ -25,7 +25,7 @@ const appRoutes: Routes = [
|
||||||
{ path: 'projects/new', component: ProjectEditorComponent, canActivate: [AuthGuard] },
|
{ path: 'projects/new', component: ProjectEditorComponent, canActivate: [AuthGuard] },
|
||||||
{ path: 'dmps', component: DataManagementPlanListingComponent, canActivate: [AuthGuard] },
|
{ path: 'dmps', component: DataManagementPlanListingComponent, canActivate: [AuthGuard] },
|
||||||
{ path: 'dmp/:id', component: DataManagementPlanEditorComponent,canActivate: [AuthGuard] },
|
{ path: 'dmp/:id', component: DataManagementPlanEditorComponent,canActivate: [AuthGuard] },
|
||||||
{ path: 'dmp/:id/new_version', component: DataManagementPlanEditorComponent, canActivate: [AuthGuard] },
|
{ path: 'dmp/:id/new_version', component: DataManagementPlanEditorComponent, canActivate: [AuthGuard], data:{clone:"clone"} },
|
||||||
{ path: 'dmps/new', component: DataManagementPlanEditorComponent, canActivate: [AuthGuard] },
|
{ path: 'dmps/new', component: DataManagementPlanEditorComponent, canActivate: [AuthGuard] },
|
||||||
{ path: 'datasets', component: DatasetListingComponent, canActivate: [AuthGuard] },
|
{ path: 'datasets', component: DatasetListingComponent, canActivate: [AuthGuard] },
|
||||||
//{ path: 'dataset/new', component: DatasetWizardComponent, canActivate: [AuthGuard] },
|
//{ path: 'dataset/new', component: DatasetWizardComponent, canActivate: [AuthGuard] },
|
||||||
|
|
|
@ -84,6 +84,7 @@ export class DataManagementPlanEditorComponent implements AfterViewInit {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
// let clone = this.route.snapshot.data.clone; ginetai kai esti ikalyvas
|
||||||
this.route
|
this.route
|
||||||
.queryParams
|
.queryParams
|
||||||
.subscribe(params => {
|
.subscribe(params => {
|
||||||
|
|
|
@ -39,9 +39,8 @@ export class ProjectModel implements Serializable<ProjectModel> {
|
||||||
id: [{ value: this.id, disabled: disabled }, context.getValidation('id').validators],
|
id: [{ value: this.id, disabled: disabled }, context.getValidation('id').validators],
|
||||||
label: [{ value: this.label, disabled: disabled }, context.getValidation('label').validators],
|
label: [{ value: this.label, disabled: disabled }, context.getValidation('label').validators],
|
||||||
abbreviation: [{ value: this.abbreviation, disabled: disabled }, context.getValidation('abbreviation').validators],
|
abbreviation: [{ value: this.abbreviation, disabled: disabled }, context.getValidation('abbreviation').validators],
|
||||||
reference: [{ value: this.reference, disabled: disabled }],
|
|
||||||
uri: [{ value: this.uri, disabled: disabled }, context.getValidation('uri').validators],
|
uri: [{ value: this.uri, disabled: disabled }, context.getValidation('uri').validators],
|
||||||
status: [{ value: this.status, disabled: disabled }, context.getValidation('label').validators],
|
status: [{ value: this.status, disabled: disabled }, context.getValidation('status').validators],
|
||||||
description: [{ value: this.description, disabled: disabled }, context.getValidation('description').validators],
|
description: [{ value: this.description, disabled: disabled }, context.getValidation('description').validators],
|
||||||
startDate: [{ value: this.startDate, disabled: disabled }, context.getValidation('startDate').validators],
|
startDate: [{ value: this.startDate, disabled: disabled }, context.getValidation('startDate').validators],
|
||||||
endDate: [{ value: this.endDate, disabled: disabled }, context.getValidation('endDate').validators]
|
endDate: [{ value: this.endDate, disabled: disabled }, context.getValidation('endDate').validators]
|
||||||
|
|
Loading…
Reference in New Issue