mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: New modal to show flags received for a user
This commit is contained in:
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user