mirror of
https://github.com/flarum/core.git
synced 2025-08-06 08:27:42 +02:00
Improve post composer + replying
- Make it modular so that different entry points can show different things and respond differently (reply, new discussion, edit post) - Resizable - Fullscreen - Confirm on close
This commit is contained in:
@@ -10,6 +10,12 @@ export default Ember.Route.extend(AddCssClassToBodyMixin, {
|
||||
this.controllerFor('index').set('paned', false);
|
||||
this.controllerFor('index').set('paneShowing', false);
|
||||
this._super(controller, model);
|
||||
}
|
||||
},
|
||||
|
||||
actions: {
|
||||
didTransition: function() {
|
||||
// @todo only if it's not a new discussion
|
||||
this.controllerFor('composer').send('minimize');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user