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

19 lines
461 B
JavaScript

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