mirror of
https://github.com/flarum/framework.git
synced 2024-12-03 07:33:36 +08:00
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:
parent
c9b971bdf8
commit
82dc0cdd7b
|
@ -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')
|
||||
])
|
||||
])
|
||||
])
|
||||
]),
|
||||
|
|
|
@ -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')
|
||||
])
|
||||
])
|
||||
])
|
||||
]),
|
||||
|
|
Loading…
Reference in New Issue
Block a user