mirror of
https://github.com/flarum/core.git
synced 2025-10-13 07:54:25 +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:
@@ -50,12 +50,15 @@ export default Ember.Route.extend({
|
||||
},
|
||||
|
||||
willTransition: function() {
|
||||
// When we transition away from this discussion, we want to hide
|
||||
// the discussions list pane. This means that when the user
|
||||
// selects a different discussion within the pane, the pane will
|
||||
// slide away.
|
||||
// When we transition into a new discussion, we want to hide the
|
||||
// discussions list pane. This means that when the user selects a
|
||||
// different discussion within the pane, the pane will slide away.
|
||||
this.controllerFor('index').set('paneShowing', false);
|
||||
}
|
||||
},
|
||||
|
||||
didTransition: function() {
|
||||
this.controllerFor('composer').send('minimize');
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user