2018-01-17 13:03:14 -05:00
|
|
|
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);
|
|
|
|
this.set("flaggedPosts", result);
|
|
|
|
});
|
2018-01-17 13:03:14 -05:00
|
|
|
}
|
|
|
|
});
|