diff options
Diffstat (limited to 'web/src/js')
-rw-r--r-- | web/src/js/components/Footer.react.js | 3 | ||||
-rw-r--r-- | web/src/js/components/ProxyApp.react.js | 3 | ||||
-rw-r--r-- | web/src/js/stores/SettingsStore.es6.js | 3 |
3 files changed, 5 insertions, 4 deletions
diff --git a/web/src/js/components/Footer.react.js b/web/src/js/components/Footer.react.js index ae0ccbe5..20a4abfb 100644 --- a/web/src/js/components/Footer.react.js +++ b/web/src/js/components/Footer.react.js @@ -2,9 +2,10 @@ var Footer = React.createClass({ render(){ + var mode = this.props.settings.mode; return ( <footer> - <span className="label label-success">transparent mode</span> + {mode != "regular" ? <span className="label label-success">{mode} mode</span> : null} </footer> ); } diff --git a/web/src/js/components/ProxyApp.react.js b/web/src/js/components/ProxyApp.react.js index 01adb089..07d66440 100644 --- a/web/src/js/components/ProxyApp.react.js +++ b/web/src/js/components/ProxyApp.react.js @@ -8,7 +8,6 @@ var Reports = React.createClass({ }); - var ProxyAppMain = React.createClass({ getInitialState(){ return { settings: SettingsStore.getAll() }; @@ -29,7 +28,7 @@ var ProxyAppMain = React.createClass({ <Header settings={this.state.settings}/> <div id="main"><this.props.activeRouteHandler/></div> {this.state.settings.showEventLog ? <EventLog/> : null} - <Footer/> + <Footer settings={this.state.settings}/> </div> ); } diff --git a/web/src/js/stores/SettingsStore.es6.js b/web/src/js/stores/SettingsStore.es6.js index 2743161e..29971fa7 100644 --- a/web/src/js/stores/SettingsStore.es6.js +++ b/web/src/js/stores/SettingsStore.es6.js @@ -5,7 +5,8 @@ class _SettingsStore extends EventEmitter { //FIXME: What do we do if we haven't requested anything from the server yet? this.settings = { version: "0.12", - showEventLog: true + showEventLog: true, + mode: "transparent", }; } getAll() { |