Skip to content

Commit

Permalink
- in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
boriskovar-m2ms committed Feb 8, 2021
1 parent 1a76895 commit c5af2dc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 0 additions & 3 deletions docker-compose.dev.vector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ services:
nofile:
soft: 40000
hard: 40000
volumes:
- ../data/neo4j/data:/data
- ../data/neo4j/logs:/logs
environment:
GRAPH_PASSWORD: test123
CYPHER_PRE_NEO4J_SLEEP: 0
Expand Down
6 changes: 6 additions & 0 deletions js/components/preview/compounds/redux/dispatchActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export const selectAllCompounds = () => (dispatch, getState) => {
items.push(thisObj);
dispatch(appendToBuyList(thisObj, compoundId, true));
dispatch(addSelectedCompoundClass(currentCompoundClass, compoundId));
dispatch(appendMoleculeToCompoundsOfDatasetToBuy(AUX_VECTOR_SELECTOR_DATASET_ID, compoundId, ''));
}
}
}
Expand Down Expand Up @@ -161,6 +162,9 @@ const clearCompounds = (items, majorViewStage) => (dispatch, getState) => {

dispatch(removeFromToBuyListAll(items));
dispatch(setToBuyList([]));
items.forEach(item => {
dispatch(removeMoleculeFromCompoundsOfDatasetToBuy(AUX_VECTOR_SELECTOR_DATASET_ID, item.id, ''));
});
// reset objects from nglView and showedCompoundList
const currentCompounds = state.previewReducers.compounds.currentCompounds;
const showedCompoundList = state.previewReducers.compounds.showedCompoundList;
Expand Down Expand Up @@ -209,9 +213,11 @@ export const handleClickOnCompound = ({ event, data, majorViewStage, index }) =>
if (isSelectedID !== undefined) {
dispatch(removeSelectedCompoundClass(index));
dispatch(removeFromToBuyList(data, index));
dispatch(removeMoleculeFromCompoundsOfDatasetToBuy(AUX_VECTOR_SELECTOR_DATASET_ID, data.id, ''));
} else {
dispatch(addSelectedCompoundClass(currentCompoundClass, index));
dispatch(appendToBuyList(Object.assign({}, data, { class: currentCompoundClass }), index));
dispatch(appendMoleculeToCompoundsOfDatasetToBuy(AUX_VECTOR_SELECTOR_DATASET_ID, data.id, ''));
}
}
};
Expand Down

0 comments on commit c5af2dc

Please sign in to comment.