mirror of
https://github.com/flarum/framework.git
synced 2024-12-13 07:03:35 +08:00
Close the composer completely if the reply is empty
This commit is contained in:
parent
b6fb560359
commit
cf0ea3d24a
|
@ -136,8 +136,13 @@ export default class DiscussionPage extends mixin(Component, evented) {
|
|||
}
|
||||
|
||||
app.pane.disable();
|
||||
app.composer.minimize();
|
||||
app.session.off('loggedIn', this.loggedInHandler);
|
||||
|
||||
if (app.composingReplyTo(discussion) && !app.composer.component.content()) {
|
||||
app.composer.hide();
|
||||
} else {
|
||||
app.composer.minimize();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user