discourse/app/assets/javascripts/admin/routes/admin_flags_old_route.js

16 lines
358 B
JavaScript
Raw Normal View History

(function() {
Discourse.AdminFlagsOldRoute = Discourse.Route.extend({
model: function() {
return Discourse.FlaggedPost.findAll('old');
},
setupController: function(controller, model) {
var c;
c = this.controllerFor('adminFlags');
c.set('content', model);
return c.set('query', 'old');
}
});
}).call(this);