diff options
Diffstat (limited to 'app/client/modules/biggan/views/biggan.show.js')
| -rw-r--r-- | app/client/modules/biggan/views/biggan.show.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/client/modules/biggan/views/biggan.show.js b/app/client/modules/biggan/views/biggan.show.js index 8d85f87..22cecfb 100644 --- a/app/client/modules/biggan/views/biggan.show.js +++ b/app/client/modules/biggan/views/biggan.show.js @@ -35,7 +35,7 @@ class BigGANShow extends Component { } } render(){ - const { biggan, match, history } = this.props + const { biggan, match, history, actions } = this.props const { folderLookup } = (biggan.data || {}) const folder = (folderLookup || {})[biggan.folder_id] || {} @@ -45,6 +45,7 @@ class BigGANShow extends Component { <div class='spaced'> <h1>{folder ? folder.name : <Loading />}</h1> <UploadStatus /> + <button onClick={() => actions.tasks.invert_task(folder.id)}>Run inversion task</button> </div> </div> <div className='row'> @@ -113,6 +114,7 @@ const mapStateToProps = state => ({ const mapDispatchToProps = (dispatch, ownProps) => ({ actions: bindActionCreators(bigganActions, dispatch), + tasks: bindActionCreators(bigganTasks, dispatch), remote: bindActionCreators(bigganTasks, dispatch), }) |
