Commit 99eccd20 authored by Smejky338's avatar Smejky338
Browse files

fix: payload for create perfEval

parent d81aaada
Pipeline #142610 waiting for manual action with stage
......@@ -48,7 +48,6 @@ public class EvaluationController {
*/
@GetMapping("/assignment/{id}")
public List<PerformanceEvaluationDTO> getAllEvaluationsByAssignment(@PathVariable("id") String id) {
// var agent = agentService.findById(id);
var assignment = assignmentService.findById(id);
var evaluations = assignment.map(evaluationService::findAllByAssignment).orElse(Collections.emptyList());
......
......@@ -20,7 +20,7 @@
<mat-form-field appearance="fill">
<mat-label>Assignment:</mat-label>
<mat-select id="select-assignment" [(ngModel)]="evaluation.assignmentId" class="bx--text-input" required name="actionSelection" >
<mat-option *ngFor="let assignment of assignments" [value]="assignment.id" >{{assignment.report}}</mat-option>
<mat-option *ngFor="let assignment of assignments" [value]="assignment.id" >{{assignment.id}} {{assignment.report}}</mat-option>
</mat-select>
</mat-form-field>
</div>
......
......@@ -51,6 +51,8 @@ export class EvaluationCreateComponent implements OnInit {
async createEvaluation() {
try {
this.state = RequestState.PENDING;
this.evaluation.rating = this.edit.get("rating")?.value;
this.evaluation.evaluation = this.edit.get("evaluation")?.value;
const response = await firstValueFrom(
this.httpClient.post<Evaluation>(
`${environment.apiUrl}/evaluations/`,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment