Commit c34967bf authored by Marco Sehrer's avatar Marco Sehrer
Browse files

Fix current sample page not refreshed when sample was updated

parent e6fc9d5a
......@@ -33,6 +33,10 @@ class UIActions {
setPagination(pagination) {
this.dispatch(pagination);
}
refreshSamples() {
this.dispatch(type)
}
}
export default alt.createActions(UIActions);
......@@ -23,7 +23,8 @@ class UIStore {
handleUncheckAllElements: UIActions.uncheckAllElements,
handleDeselectAllElements: UIActions.deselectAllElements,
handleSelectElement: UIActions.selectElement,
handleSetPagination: UIActions.setPagination
handleSetPagination: UIActions.setPagination,
handleRefreshSamples: ElementActions.updateSample
});
}
......@@ -89,6 +90,10 @@ class UIStore {
handleSetPagination(pagination) {
this.state.pagination = pagination;
}
handleRefreshSamples() {
ElementActions.fetchSamplesByCollectionId(this.state.currentCollectionId, this.state.pagination)
}
}
export default alt.createStore(UIStore, 'UIStore');
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