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

6 lines
244 B
CoffeeScript

Discourse.AdminFlagsActiveRoute = Discourse.Route.extend
model: -> Discourse.FlaggedPost.findAll('active')
setupController: (controller, model) ->
c = @controllerFor('adminFlags')
c.set('content', model)
c.set('query', 'active')