diff --git a/src/containers/SkynetExport/SkynetExport.js b/src/containers/SkynetExport/SkynetExport.js index b792e02..db85ba8 100644 --- a/src/containers/SkynetExport/SkynetExport.js +++ b/src/containers/SkynetExport/SkynetExport.js @@ -12,8 +12,9 @@ import { faCheckSquare, faChevronDown, faChevronRight, faFile, faFolder, faFolderOpen, faHSquare, faMinusSquare, faPlusSquare, - faSquare, faSquareFull, faSquareRootAlt + faSquare } from '@fortawesome/free-solid-svg-icons'; +import Button from '../../components/UI/Button/Button'; const Constants = require('../../constants'); @@ -34,8 +35,10 @@ const mapDispatchToProps = dispatch => { export default connect(mapStateToProps, mapDispatchToProps)(class extends IPCContainer { state = { checked: [], + clicked: {}, expanded: [], nodes: [], + second_stage: false, } componentDidMount() { @@ -75,6 +78,23 @@ export default connect(mapStateToProps, mapDispatchToProps)(class extends IPCCon return ret; } + handleNavigation = () => { + if (this.state.second_stage) { + + } else { + if (this.state.checked.length === 0) { + this.props.notifyError('No files have been checked'); + } else { + this.setState({ + second_stage: true, + }); + } + } + } + + onExportSkylinksReply = (_, arg) => { + } + onGrabSkynetTreeReply = (_, arg) => { if (arg.data.Success) { this.setState({ @@ -93,12 +113,7 @@ export default connect(mapStateToProps, mapDispatchToProps)(class extends IPCCon } } - onExportSkylinksReply = (_, arg) => { - - } - render() { - console.log(this.state.expanded); return this.props.AppBusy ? (
) : ( X

{'Export Files'}

- , - uncheck: , - halfCheck: , - expandClose: , - expandOpen: , - expandAll: , - collapseAll: , - parentClose: , - parentOpen: , - leaf: - }} - nodes={this.state.nodes} - onCheck={checked => this.setState({checked})} - onExpand={expanded => this.setState({expanded})}/> +
+ { + this.state.second_stage ? (
) : ( + , + uncheck: , + halfCheck: , + expandClose: , + expandOpen: , + expandAll: , + collapseAll: , + parentClose: , + parentOpen: , + leaf: + }} + nodes={this.state.nodes} + onClick={clicked => this.setState({clicked})} + onCheck={checked => this.setState({checked})} + onExpand={expanded => this.setState({expanded})}/> + ) + } +
+
+ { + this.state.second_stage ? + : + null + } + +
); }