From 7b031ee255679351249c8fb722645a030dc6e98a Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 9 Jan 2020 21:10:11 +0100 Subject: sliders --- .../modules/biggan/views/biggan.encodingList.js | 44 +++++++++++++++------- 1 file changed, 30 insertions(+), 14 deletions(-) (limited to 'app/client/modules/biggan/views') diff --git a/app/client/modules/biggan/views/biggan.encodingList.js b/app/client/modules/biggan/views/biggan.encodingList.js index d041e2e..76c306c 100644 --- a/app/client/modules/biggan/views/biggan.encodingList.js +++ b/app/client/modules/biggan/views/biggan.encodingList.js @@ -3,38 +3,54 @@ import { bindActionCreators } from 'redux' import { connect } from 'react-redux' import { - Loading + Loading, Group, Slider } from '../../../common/' import actions from '../../../actions' import * as bigganTasks from '../biggan.tasks' import * as bigganActions from '../biggan.actions' -const ALL_CATEGORIES = 'inversion/categories/biggan_all.json' - class BigGANEncodingList extends Component { - constructor() { - super() - if (!this.props.encodings) { - this.actions.biggan.load_encodings() + componentDidMount() { + if (!this.props.biggan.encodings) { + this.props.actions.biggan.load_encodings() } } render() { - const { encodings } = this.props + const { encodings } = this.props.biggan if (!encodings) { return
Loading encodings...
} return (
-
- -
-
this.categoryRef = ref}> + + + + + + +
this.categoryRef = ref}> {Object.keys(encodings).sort().map(name => { return (
+

{name}

{encodings[name].map(file => ( ({ } }) -export default connect(mapStateToProps, mapDispatchToProps)(BigGANCategoryList) +export default connect(mapStateToProps, mapDispatchToProps)(BigGANEncodingList) -- cgit v1.2.3-70-g09d2