This commit is contained in:
Alexis Lahouze 2018-06-14 21:19:17 +02:00
parent b3f0199036
commit 8eaa3b9039

View File

@ -39,13 +39,13 @@ export class OperationRowComponent {
operation.pointed = !operation.pointed; operation.pointed = !operation.pointed;
this.save(operation); this.save(operation);
}; }
toggleCanceled(operation) { toggleCanceled(operation) {
operation.canceled = !operation.canceled; operation.canceled = !operation.canceled;
this.save(operation); this.save(operation);
}; }
save(operation) { save(operation) {
operation.confirmed = true; operation.confirmed = true;
@ -67,13 +67,11 @@ export class OperationRowComponent {
modal.componentInstance.operation = this.operation; modal.componentInstance.operation = this.operation;
var id = operation.id;
modal.result.then((operation: Operation) => { modal.result.then((operation: Operation) => {
this.delete(operation); this.delete(operation);
}, (reason) => { }, () => {
}) });
}; }
delete(operation) { delete(operation) {
var id = operation.id; var id = operation.id;
@ -89,5 +87,5 @@ export class OperationRowComponent {
id + ':<br />' + result id + ':<br />' + result
); );
}); });
}; }
} }