summaryrefslogtreecommitdiff
path: root/ui/app/components/panel_switcher.js
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2016-09-21 15:39:03 -0700
committerKali Kaneko (leap communications) <kali@leap.se>2016-09-22 11:40:14 -0400
commit7569ac8bd58174095f3f897548e26d0ba905236c (patch)
tree839c300d7dff62900bcc91672a3b55cf62c31f6c /ui/app/components/panel_switcher.js
parent61b5734c12d6ab6733d3a832df8d99f1041bf355 (diff)
[feat] the setup wizard for the new ui
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>
}