summaryrefslogtreecommitdiff
path: root/ui/app/components/panel_switcher.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/app/components/panel_switcher.js')
-rw-r--r--ui/app/components/panel_switcher.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/ui/app/components/panel_switcher.js b/ui/app/components/panel_switcher.js
index aaf2dc5..2746f00 100644
--- a/ui/app/components/panel_switcher.js
+++ b/ui/app/components/panel_switcher.js
@@ -17,7 +17,7 @@ export default class PanelSwitcher extends React.Component {
this.state = {
panel: null,
panel_properties: null,
- debug: false
+ debug: true
}
App.switcher = this
}
@@ -33,10 +33,11 @@ export default class PanelSwitcher extends React.Component {
this.panelRender(this.state.panel, this.state.panel_properties)
)
}
- if (this.state.debug) {
- elems.push(
- elem(DebugPanel, {key: 'debug'})
- )
+ if (this.state.debug && this.state.panel) {
+ window.location.hash = this.state.panel
+ //elems.push(
+ // elem(DebugPanel, {key: 'debug'})
+ //)
}
return <div id="root">{elems}</div>
}