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

12 lines
254 B
Plaintext
Raw Normal View History

import DiscourseRoute from "discourse/routes/discourse";
export default DiscourseRoute.extend({
2017-09-06 10:21:07 -04:00
model() {
2018-06-15 11:03:24 -04:00
return this.store.findAll("flagged-topic");
2017-09-06 10:21:07 -04:00
},
setupController(controller, model) {
2018-06-15 11:03:24 -04:00
controller.set("flaggedTopics", model);
2017-09-06 10:21:07 -04:00
}
});