discourse/app/assets/javascripts/admin/routes/admin-flags-topics-index.js...

12 lines
254 B
JavaScript

import DiscourseRoute from "discourse/routes/discourse";
export default DiscourseRoute.extend({
model() {
return this.store.findAll("flagged-topic");
},
setupController(controller, model) {
controller.set("flaggedTopics", model);
}
});