FEATURE: New modal to show flags received for a user

This commit is contained in:
Robin Ward
2018-01-17 13:03:14 -05:00
parent ec65ae76b9
commit 34ed6088b9
15 changed files with 121 additions and 42 deletions

View File

@@ -0,0 +1,17 @@
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);
console.log(result);
this.set('flaggedPosts', result);
});
}
});