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

12 lines
285 B
JavaScript

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