From 5ea3049398c673702257b8d2215e6718308c1ab7 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 10 Jan 2020 02:59:41 +0100 Subject: biggan path --- app/client/modules/biggan/biggan.tasks.js | 4 +--- app/client/modules/biggan/views/biggan.show.js | 4 +++- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'app/client') diff --git a/app/client/modules/biggan/biggan.tasks.js b/app/client/modules/biggan/biggan.tasks.js index 2aed088..a28bf20 100644 --- a/app/client/modules/biggan/biggan.tasks.js +++ b/app/client/modules/biggan/biggan.tasks.js @@ -7,13 +7,11 @@ import actions from '../../actions' import module from './biggan.module' -export const invert_task = (dataset, folder_id, epochs=1) => dispatch => { - dataset = dataset.name || dataset +export const invert_task = (folder_id) => dispatch => { if (dataset === 'PLACEHOLDER') return const task = { module: module.name, activity: 'invert', - dataset, opt: { folder_id: folder_id, } 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 {

{folder ? folder.name : }

+
@@ -113,6 +114,7 @@ const mapStateToProps = state => ({ const mapDispatchToProps = (dispatch, ownProps) => ({ actions: bindActionCreators(bigganActions, dispatch), + tasks: bindActionCreators(bigganTasks, dispatch), remote: bindActionCreators(bigganTasks, dispatch), }) -- cgit v1.2.3-70-g09d2