no message

This commit is contained in:
Diamantis Tziotzios 2017-12-19 12:33:47 +02:00
parent 84845284f5
commit 8bb591245a
4 changed files with 6 additions and 6 deletions

View File

@ -48,7 +48,7 @@ export class DataManagementPlanListingComponent implements OnInit {
}
rowClick(rowId: String) {
this.router.navigate(['/forms/' + rowId]);
this.router.navigate(['/dmp/' + rowId]);
}
getDefaultCriteria(): DataManagementPlanCriteria {

View File

@ -1,8 +1,8 @@
<div class="project-editor">
<div class="data-management-plan-editor">
<form *ngIf="formGroup" (ngSubmit)="formSubmit()" [formGroup]="formGroup">
<mat-card>
<mat-card-title *ngIf="isNew">{{'DMP-EDITOR.TITLE.NEW' | translate}}</mat-card-title>
<mat-card-title *ngIf="!isNew">{{'DMP-EDITOR.TITLE.EDIT' | translate}} {{project.label}}</mat-card-title>
<mat-card-title *ngIf="!isNew">{{'DMP-EDITOR.TITLE.EDIT' | translate}} {{dataManagementPlan.label}}</mat-card-title>
<mat-card-content>
<mat-form-field>

View File

@ -10,7 +10,7 @@
background: rgba(0, 0, 0, 0.32);
}
.project-editor {
.data-management-plan-editor {
mat-form-field {
width: 100%;
padding: 3px;

View File

@ -31,7 +31,7 @@ export class DataManagementPlanService {
}
getSingle(id: string): Observable<DataManagementPlanModel> {
return this.http.get<DataManagementPlanModel>(this.actionUrl + 'getSingle' + id, { headers: this.headers });
return this.http.get<DataManagementPlanModel>(this.actionUrl + 'getSingle/' + id, { headers: this.headers });
}
createDataManagementPlan(dataManagementPlanModel: DataManagementPlanModel): Observable<DataManagementPlanModel> {
@ -39,6 +39,6 @@ export class DataManagementPlanService {
}
inactivate(id: String): Observable<DataManagementPlanModel> {
return this.http.delete<DataManagementPlanModel>(this.actionUrl + 'inactivate' + id, { headers: this.headers });
return this.http.delete<DataManagementPlanModel>(this.actionUrl + 'inactivate/' + id, { headers: this.headers });
}
}