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

11 lines
267 B
JavaScript

export default Discourse.Route.extend({
model() {
return this.modelFor("group").findPosts({type: 'messages'});
},
setupController(controller, model) {
controller.set("model", model);
this.controllerFor("group").set("showing", "messages");
}
});