1
0
mirror of https://github.com/flarum/core.git synced 2025-07-12 20:36:28 +02:00

Hide the drawer/modal when constructing all pages

Might be better to do this on config... also extract it into a parent
"Page" component
This commit is contained in:
Toby Zerner
2015-07-22 09:51:41 +09:30
parent d0c8777430
commit 9af141ce0b
5 changed files with 6 additions and 1 deletions

View File

@ -53,6 +53,8 @@ export default class DiscussionPage extends mixin(Component, evented) {
// button.
app.history.push('discussion');
app.current = this;
app.drawer.hide();
app.modal.close();
app.session.on('loggedIn', this.loggedInHandler = this.refresh.bind(this));
}