discourse/app/assets/javascripts/admin/routes/admin-flags-topics-index.js
2020-03-13 17:03:08 -04:00

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);
}
});