discourse/app/assets/javascripts/discourse/routes/group-index.js.es6

14 lines
301 B
JavaScript

export default Discourse.Route.extend({
actions: {
didTransition() { return true; }
},
model() {
return this.modelFor("group").findPosts();
},
setupController(controller, model) {
controller.set("model", model);
this.controllerFor("group").set("showing", "posts");
}
});