discourse/app/assets/javascripts/admin/components/flag-counts.js.es6

11 lines
268 B
Plaintext
Raw Normal View History

2017-09-06 22:21:07 +08:00
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 });
}
});