mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: View flags grouped by topic
This commit is contained in:
10
app/assets/javascripts/admin/components/flag-counts.js.es6
Normal file
10
app/assets/javascripts/admin/components/flag-counts.js.es6
Normal file
@@ -0,0 +1,10 @@
|
||||
import computed from 'ember-addons/ember-computed-decorators';
|
||||
|
||||
export default Ember.Component.extend({
|
||||
classNames: ['flag-counts'],
|
||||
|
||||
@computed('details.flag_type_id')
|
||||
title(id) {
|
||||
return I18n.t(`admin.flags.summary.action_type_${id}`, { count: 1 });
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user