From 70eb1febff1fb96474385763e3df560bb516bc29 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Sun, 30 Jul 2017 15:36:57 +0200 Subject: [PATCH] Fix Operation confirmation. --- src/operations/operationRow.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/operations/operationRow.component.ts b/src/operations/operationRow.component.ts index d978268..0b9da73 100644 --- a/src/operations/operationRow.component.ts +++ b/src/operations/operationRow.component.ts @@ -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();