diff --git a/src/operations/operationRow.component.ts b/src/operations/operationRow.component.ts index 25b34bb..0530fe3 100644 --- a/src/operations/operationRow.component.ts +++ b/src/operations/operationRow.component.ts @@ -39,13 +39,13 @@ export class OperationRowComponent { operation.pointed = !operation.pointed; this.save(operation); - }; + } toggleCanceled(operation) { operation.canceled = !operation.canceled; this.save(operation); - }; + } save(operation) { operation.confirmed = true; @@ -67,13 +67,11 @@ export class OperationRowComponent { modal.componentInstance.operation = this.operation; - var id = operation.id; - modal.result.then((operation: Operation) => { this.delete(operation); - }, (reason) => { - }) - }; + }, () => { + }); + } delete(operation) { var id = operation.id; @@ -89,5 +87,5 @@ export class OperationRowComponent { id + ':
' + result ); }); - }; + } }