mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-18 03:25:31 -05:00
23 lines
522 B
JavaScript
23 lines
522 B
JavaScript
/**
|
|
Handles routes related to viewing active flags.
|
|
|
|
@class AdminFlagsActiveRoute
|
|
@extends Discourse.Route
|
|
@namespace Discourse
|
|
@module Discourse
|
|
**/
|
|
Discourse.AdminFlagsActiveRoute = Discourse.Route.extend({
|
|
|
|
model: function() {
|
|
return Discourse.FlaggedPost.findAll('active');
|
|
},
|
|
|
|
setupController: function(controller, model) {
|
|
var adminFlagsController = this.controllerFor('adminFlags');
|
|
adminFlagsController.set('content', model);
|
|
adminFlagsController.set('query', 'active');
|
|
}
|
|
|
|
});
|
|
|
|
|