Fix broken login/signup links

They’re still broken, hoping that
https://github.com/babel/babel/issues/1150#issuecomment-102881157 will
fix
This commit is contained in:
Toby Zerner 2015-05-18 14:58:08 +09:30
parent 9d8afce204
commit 4534d8ddda
2 changed files with 10 additions and 2 deletions

View File

@ -1,5 +1,6 @@
import Component from 'flarum/component';
import LoadingIndicator from 'flarum/components/loading-indicator';
import SignupModal from 'flarum/components/signup-modal';
import icon from 'flarum/helpers/icon';
export default class LoginModal extends Component {
@ -33,7 +34,10 @@ export default class LoginModal extends Component {
]),
m('div.modal-footer', [
m('p.forgot-password-link', m('a[href=javascript:;]', 'Forgot password?')),
m('p.sign-up-link', ['Don\'t have an account? ', m('a[href=javascript:;]', {onclick: app.signup}, 'Sign Up')])
m('p.sign-up-link', [
'Don\'t have an account? ',
m('a[href=javascript:;]', {onclick: () => app.modal.show(new SignupModal())}, 'Sign Up')
])
])
])
]),

View File

@ -1,5 +1,6 @@
import Component from 'flarum/component';
import LoadingIndicator from 'flarum/components/loading-indicator';
import LoginModal from 'flarum/components/login-modal';
import icon from 'flarum/helpers/icon';
import avatar from 'flarum/helpers/avatar';
@ -40,7 +41,10 @@ export default class SignupModal extends Component {
])
]),
m('div.modal-footer', [
m('p.log-in-link', ['Already have an account? ', m('a[href=javascript:;]', {onclick: app.login}, 'Log In')])
m('p.log-in-link', [
'Already have an account? ',
m('a[href=javascript:;]', {onclick: () => app.modal.show(new LoginModal())}, 'Log In')
])
])
])
]),