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

10 lines
197 B
JavaScript

export default Discourse.Route.extend({
model() {
return this.store.findAll('flagged-topic');
},
setupController(controller, model) {
controller.set('flaggedTopics', model);
}
});