Skip to content

Commit 7659d32

Browse files
committed
#472 binding function that requires context for the dialog
1 parent 0efe38d commit 7659d32

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

webapp/components/NetPyNE.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const styles = ({ zIndex }) => ({
3131
},
3232
topbar: {
3333
position: 'relative',
34-
zIndex: zIndex.drawer + 1,
34+
zIndex: zIndex.drawer,
3535
},
3636
content: {
3737
flexGrow: 1,
@@ -46,6 +46,11 @@ const TIMEOUT = 10000;
4646
const EXPERIMENT_POLL_INTERVAL = 1000;
4747

4848
class NetPyNE extends React.Component {
49+
constructor (props) {
50+
super(props);
51+
this.openPythonCallDialog = this.openPythonCallDialog.bind(this);
52+
}
53+
4954
componentDidMount () {
5055
GEPPETTO.on(GEPPETTO.Events.Error_while_exec_python_command, this.openPythonCallDialog, this);
5156

0 commit comments

Comments
 (0)