mirror of
https://github.com/flarum/framework.git
synced 2024-12-04 08:13:39 +08:00
12b0418eb7
- 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
22 lines
656 B
JavaScript
22 lines
656 B
JavaScript
import Ember from 'ember';
|
|
|
|
import AddCssClassToBodyMixin from '../../mixins/add-css-class-to-body';
|
|
|
|
export default Ember.Route.extend(AddCssClassToBodyMixin, {
|
|
|
|
// When we enter the discussions list view, we no longer want the
|
|
// discussions list to be in pane mode.
|
|
setupController: function(controller, model) {
|
|
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');
|
|
}
|
|
}
|
|
});
|