mirror of
https://github.com/flarum/core.git
synced 2025-08-03 23:17:43 +02:00
Minimise composer when exiting a page, rather than entering it
This commit is contained in:
@@ -47,7 +47,6 @@ export default class DiscussionPage extends Component {
|
|||||||
|
|
||||||
app.history.push('discussion');
|
app.history.push('discussion');
|
||||||
app.current = this;
|
app.current = this;
|
||||||
app.composer.minimize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
params() {
|
params() {
|
||||||
@@ -125,6 +124,7 @@ export default class DiscussionPage extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
app.pane.disable();
|
app.pane.disable();
|
||||||
|
app.composer.minimize();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -40,7 +40,6 @@ export default class IndexPage extends Component {
|
|||||||
|
|
||||||
app.history.push('index');
|
app.history.push('index');
|
||||||
app.current = this;
|
app.current = this;
|
||||||
app.composer.minimize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
onunload() {
|
onunload() {
|
||||||
@@ -144,6 +143,10 @@ export default class IndexPage extends Component {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onunload() {
|
||||||
|
app.composer.minimize();
|
||||||
|
}
|
||||||
|
|
||||||
newDiscussion() {
|
newDiscussion() {
|
||||||
if (app.session.user()) {
|
if (app.session.user()) {
|
||||||
app.composer.load(new ComposerDiscussion({ user: app.session.user() }));
|
app.composer.load(new ComposerDiscussion({ user: app.session.user() }));
|
||||||
|
Reference in New Issue
Block a user