Fix Operation confirmation.

This commit is contained in:
Alexis Lahouze 2017-07-30 15:36:57 +02:00
parent 896daa70c5
commit 70eb1febff

View File

@ -98,9 +98,9 @@ export class OperationRowComponent {
};
save(operation) {
return this.operationService.update(operation).subscribe((operation) => {
operation.confirmed = true;
operation.confirmed = true;
return this.operationService.update(operation).subscribe((operation) => {
this.toastrService.success('Operation #' + operation.id + ' saved.');
this.needsReload.emit();