summaryrefslogtreecommitdiff
path: root/ui/app/components/greeter_panel.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/app/components/greeter_panel.js')
-rw-r--r--ui/app/components/greeter_panel.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/ui/app/components/greeter_panel.js b/ui/app/components/greeter_panel.js
index 4552db1..c95b183 100644
--- a/ui/app/components/greeter_panel.js
+++ b/ui/app/components/greeter_panel.js
@@ -16,12 +16,16 @@ export default class GreeterPanel extends React.Component {
App.show('wizard')
}
+ onLogin(account) {
+ App.show('main', {initialAccount: account})
+ }
+
render () {
return <div>
<Splash speed="slow" mask={false} />
<Center width="400">
<Area position="top" type="light" className="greeter">
- <Login {...this.props} rememberAllowed={false}/>
+ <Login onLogin={this.onLogin.bind(this)} rememberAllowed={false}/>
</Area>
<Area position="bottom" type="dark" className="greeter">
<Glyphicon glyph="user" />