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 c9b971bdf8
commit 82dc0cdd7b
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')
])
])
])
]),