summaryrefslogtreecommitdiff
path: root/ui/app/components/greeter_panel.js
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2017-04-19 19:51:50 -0700
committerKali Kaneko (leap communications) <kali@leap.se>2017-04-20 18:08:32 +0200
commit3810cfb433308dd9ced9c2185ecbb5f206e07f4c (patch)
tree73aceadb032cdfa9ba5c81944c05bc8e42cdc385 /ui/app/components/greeter_panel.js
parent73836440b099f10174bc0b79ad4b8c85fcb9caf1 (diff)
[feat] added app buttons (quit & about bitmask)
- Closes #8803
Diffstat (limited to 'ui/app/components/greeter_panel.js')
-rw-r--r--ui/app/components/greeter_panel.js17
1 files changed, 13 insertions, 4 deletions
diff --git a/ui/app/components/greeter_panel.js b/ui/app/components/greeter_panel.js
index 31403573..a2783ec2 100644
--- a/ui/app/components/greeter_panel.js
+++ b/ui/app/components/greeter_panel.js
@@ -3,7 +3,7 @@ import Login from './login'
import Center from './center'
import Splash from './splash'
import Area from './area'
-import { Glyphicon } from 'react-bootstrap'
+import { Glyphicon, Button, ButtonToolbar } from 'react-bootstrap'
import App from 'app'
export default class GreeterPanel extends React.Component {
@@ -20,6 +20,10 @@ export default class GreeterPanel extends React.Component {
App.start()
}
+ quit() {
+ App.show('bye_splash')
+ }
+
render () {
return <div>
<Splash speed="slow" mask={false} />
@@ -29,9 +33,14 @@ export default class GreeterPanel extends React.Component {
rememberAllowed={false} autoAllowed={true} />
</Area>
<Area position="bottom" type="dark" className="greeter">
- <Glyphicon glyph="user" />
- &nbsp;
- <a href="javascript:void(0)" onClick={this.newAccount.bind(this)}>Create a new account...</a>
+ <ButtonToolbar>
+ <Button onClick={this.quit.bind(this)} className="pull-right">
+ <Glyphicon glyph="off" />
+ </Button>
+ <Button onClick={this.newAccount.bind(this)}>
+ <Glyphicon glyph="user" /> New account...
+ </Button>
+ </ButtonToolbar>
</Area>
</Center>
</div>