Skip to content
Snippets Groups Projects
Commit 57e017d8 authored by Sam Kagan's avatar Sam Kagan
Browse files

Fixed small bug, unmocked jobSvc.updateNotes

parent f318486c
No related branches found
No related tags found
2 merge requests!25Merge 2.4.3 UI to main,!21Added tiles checklist for Accept-and-Archiving calibration jobs
......@@ -18,7 +18,7 @@
</a>
</p>
<form formGroup="noteFormGroup" (ngSubmit)="updateNotes()" class="mb-2">
<form [formGroup]="noteFormGroup" (ngSubmit)="updateNotes()" class="mb-2">
<div class="row mt-3 mr-0">
<div class="col-auto">
<h4 class="pt-2">
......
......@@ -151,11 +151,10 @@ export class JobsService {
public updateNotes(id: number, notes: string): Observable<string> {
// return this.http.put(this.configService.config.url + this.endPoint + 'jobs/' + id + '/notes', {notes: notes}, {observe: "response"}).pipe(
// map(response => {
// return notes;
// }));
return of("");
return this.http.put(this.configService.config.url + this.endPoint + 'jobs/' + id + '/notes', {notes: notes}, {observe: "response"}).pipe(
map(response => {
return notes;
}));
}
public updateJobStatus(id: number, status: string) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment