1
0
mirror of https://github.com/flarum/core.git synced 2025-07-25 10:41:24 +02:00

Minimise composer when exiting a page, rather than entering it

This commit is contained in:
Toby Zerner
2015-05-18 10:37:07 +09:30
parent 008b937a20
commit a80ae5c400
2 changed files with 5 additions and 2 deletions

View File

@@ -47,7 +47,6 @@ export default class DiscussionPage extends Component {
app.history.push('discussion');
app.current = this;
app.composer.minimize();
}
params() {
@@ -125,6 +124,7 @@ export default class DiscussionPage extends Component {
}
app.pane.disable();
app.composer.minimize();
}
/**

View File

@@ -40,7 +40,6 @@ export default class IndexPage extends Component {
app.history.push('index');
app.current = this;
app.composer.minimize();
}
onunload() {
@@ -144,6 +143,10 @@ export default class IndexPage extends Component {
}
}
onunload() {
app.composer.minimize();
}
newDiscussion() {
if (app.session.user()) {
app.composer.load(new ComposerDiscussion({ user: app.session.user() }));