mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
18 lines
381 B
JavaScript
18 lines
381 B
JavaScript
export default Ember.Controller.extend({
|
|
loadingFlags: null,
|
|
user: null,
|
|
|
|
onShow() {
|
|
this.set("loadingFlags", true);
|
|
this.store
|
|
.findAll("flagged-post", {
|
|
filter: "without_custom",
|
|
user_id: this.get("model.id")
|
|
})
|
|
.then(result => {
|
|
this.set("loadingFlags", false);
|
|
this.set("flaggedPosts", result);
|
|
});
|
|
}
|
|
});
|