Commit 25523bb6 authored by Benjamin Bouvier's avatar Benjamin Bouvier
Browse files

Addressed two nits in the delete-operation merge request;

- force scroll after an operation deletion;
- create the right user event for deleting an operation;
parent 8ece6070
......@@ -61,7 +61,10 @@ export default class OperationsComponent extends React.Component {
operations: store.getCurrentOperations(),
firstItemShown: 0,
lastItemShown: INITIAL_SHOW_ITEMS
}, () => this.refs.search.filter());
}, () => {
this.refs.search.filter();
this.handleScroll();
});
}
setFilteredOperations(operations) {
......
......@@ -58,6 +58,7 @@ const Events = {
deletedAlert: 'the user clicked in order to delete an alert',
deletedBank: 'the user clicked in order to delete a bank',
deletedCategory: 'the user clicked in order to delete a category',
deletedOperation: 'the user clicked in order to delete an operation',
fetchedAccounts: 'the user clicked in order to fetch new accounts/operations for a bank',
fetchedOperations: 'the user clicked in order to fetch operations for a bank',
importedInstance: 'the user sent a file to import a kresus instance',
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment