mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-01 03:17:53 -05:00
19 lines
461 B
JavaScript
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');
|
|
}
|
|
|
|
});
|
|
|
|
|