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

20 lines
459 B
JavaScript

/**
Handles routes related to viewing active flags.
@class AdminFlagsActiveRoute
@extends Discourse.Route
@namespace Discourse
@module Discourse
**/
Discourse.AdminFlagsActiveRoute = Discourse.Route.extend({
setupController: function() {
var adminFlagsController = this.controllerFor('adminFlags');
adminFlagsController.set('content', Discourse.FlaggedPost.findAll('active'));
adminFlagsController.set('query', 'active');
}
});