mirror of
https://github.com/flarum/core.git
synced 2025-10-12 15:34:26 +02:00
Make replyAction into a promise. closes #100
This commit is contained in:
@@ -88,7 +88,7 @@ export default class DiscussionPage extends mixin(Component, evented) {
|
||||
this.stream.on('positionChanged', this.positionChanged.bind(this));
|
||||
this.stream.goToNumber(m.route.param('near') || 1, true);
|
||||
|
||||
this.trigger('loaded');
|
||||
this.trigger('loaded', discussion);
|
||||
}
|
||||
|
||||
onload(element, isInitialized, context) {
|
||||
|
@@ -60,7 +60,7 @@ export default class LoginModal extends FormModal {
|
||||
|
||||
app.session.login(email, password).then(() => {
|
||||
this.hide();
|
||||
this.props.callback && this.props.callback();
|
||||
this.props.onlogin && this.props.onlogin();
|
||||
}, response => {
|
||||
this.loading(false);
|
||||
if (response && response.code === 'confirm_email') {
|
||||
|
Reference in New Issue
Block a user