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