diff options
| author | Andrej Mihajlov <and@codeispoetry.ru> | 2017-02-09 15:15:12 +0000 |
|---|---|---|
| committer | Andrej Mihajlov <and@codeispoetry.ru> | 2017-02-09 15:15:12 +0000 |
| commit | c74e1eded68e2932aa053739f821064c528d552a (patch) | |
| tree | 545fb4fbbf1836c058769b8345b791a04acdbeac /app | |
| parent | 8ab8b15367db27d30cc5e67f7b92da8f12c339ee (diff) | |
| download | mullvadvpn-c74e1eded68e2932aa053739f821064c528d552a.tar.xz mullvadvpn-c74e1eded68e2932aa053739f821064c528d552a.zip | |
Open create account page in browser
Diffstat (limited to 'app')
| -rw-r--r-- | app/components/Login.js | 8 | ||||
| -rw-r--r-- | app/constants.js | 3 | ||||
| -rw-r--r-- | app/index.html | 2 |
3 files changed, 11 insertions, 2 deletions
diff --git a/app/components/Login.js b/app/components/Login.js index dbaec2f43a..adf8e2cedb 100644 --- a/app/components/Login.js +++ b/app/components/Login.js @@ -1,5 +1,7 @@ +import { shell } from 'electron'; import React, { Component, PropTypes } from 'react'; import Layout from './Layout'; +import constants from '../constants'; export default class Login extends Component { static propTypes = { @@ -15,6 +17,10 @@ export default class Login extends Component { this.props.router.push('/loggedin'); } + handleCreateAccount() { + shell.openExternal(constants.createAccountURL); + } + render() { return ( <Layout> @@ -30,7 +36,7 @@ export default class Login extends Component { </div> <div className="login-footer"> <div className="login-footer__prompt">Don't have an account number?</div> - <button className="login-footer__button">Create account</button> + <button className="login-footer__button" onClick={::this.handleCreateAccount}>Create account</button> </div> </div> </Layout> diff --git a/app/constants.js b/app/constants.js new file mode 100644 index 0000000000..1e88112e9a --- /dev/null +++ b/app/constants.js @@ -0,0 +1,3 @@ +module.exports = { + createAccountURL: 'https://mullvad.net/account/create/' +}; diff --git a/app/index.html b/app/index.html index 4a444aff86..e0ac17cd31 100644 --- a/app/index.html +++ b/app/index.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html> <head> - <title>My App</title> + <title>Mullvad VPN</title> <link rel="stylesheet" href="./assets/css/style.css" /> </head> <body> |
