mirror of
https://github.com/discourse/discourse.git
synced 2025-02-09 21:04:48 +00:00
18 lines
399 B
JavaScript
18 lines
399 B
JavaScript
Discourse.AdminGroupRoute = Discourse.Route.extend({
|
|
|
|
model: function(params) {
|
|
var groups = this.modelFor('adminGroups'),
|
|
group = groups.findProperty('name', params.name);
|
|
|
|
if (!group) { return this.transitionTo('adminGroups.index'); }
|
|
return group;
|
|
},
|
|
|
|
setupController: function(controller, model) {
|
|
controller.set("model", model);
|
|
model.findMembers();
|
|
}
|
|
|
|
});
|
|
|