1
0
mirror of https://github.com/flarum/core.git synced 2025-07-19 15:51:16 +02:00

Make the FormModal component more flexible

This commit is contained in:
Toby Zerner
2015-06-12 16:40:20 +09:30
parent 5c21efe09d
commit 81dc3a1c48
7 changed files with 13 additions and 15 deletions

View File

@@ -18,7 +18,7 @@ export default class ChangeEmailModal extends FormModal {
return super.view({
className: 'modal-sm change-email-modal',
title: 'Change Email',
body: this.success()
body: m('div.form-centered', this.success()
? [
m('p.help-text', 'We\'ve sent a confirmation email to ', m('strong', this.email()), '. If it doesn\'t arrive soon, check your spam folder.'),
m('div.form-group', [
@@ -37,7 +37,7 @@ export default class ChangeEmailModal extends FormModal {
m('div.form-group', [
m('button.btn.btn-primary.btn-block[type=submit]', {disabled}, 'Save Changes')
])
]
])
});
}