mirror of
https://github.com/flarum/core.git
synced 2025-02-25 11:43:19 +01:00
Close the composer completely if the reply is empty
This commit is contained in:
parent
34ca6d4515
commit
6881229702
@ -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…
x
Reference in New Issue
Block a user