discourse/app/assets/javascripts/admin/controllers/modals/admin-flags-received.js.es6

19 lines
410 B
Plaintext
Raw Normal View History

export default Ember.Controller.extend({
loadingFlags: null,
user: null,
onShow() {
2018-06-15 11:03:24 -04:00
this.set("loadingFlags", true);
this.store
.findAll("flagged-post", {
filter: "without_custom",
user_id: this.get("model.id")
})
.then(result => {
this.set("loadingFlags", false);
console.log(result);
this.set("flaggedPosts", result);
});
}
});