mirror of
https://github.com/discourse/discourse.git
synced 2026-09-05 04:40:41 -05:00
UX: do not show filter controls for PM admin reports
This commit is contained in:
@@ -26,6 +26,11 @@ export default Ember.Controller.extend({
|
||||
return arr.concat(this.site.groups.map((i) => {return {name: i['name'], value: i['id']};}));
|
||||
},
|
||||
|
||||
@computed('model.type')
|
||||
showFilterOptions(modelType) {
|
||||
return !modelType.match(/_private_messages$/);
|
||||
},
|
||||
|
||||
@computed('model.type')
|
||||
showGroupOptions(modelType) {
|
||||
return modelType === "visits" || modelType === "signups" || modelType === "profile_views";
|
||||
|
||||
Reference in New Issue
Block a user