This commit is contained in:
Alexis Lahouze 2018-06-14 21:19:17 +02:00
parent b3f0199036
commit 8eaa3b9039
1 changed files with 6 additions and 8 deletions

View File

@ -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 + ':<br />' + result
);
});
};
}
}