Convert user card buttons to {{d-button}} components

This commit is contained in:
Robin Ward
2017-08-24 12:22:46 -04:00
parent 9c446fcb4d
commit a6251f717b
3 changed files with 32 additions and 5 deletions
@@ -46,6 +46,11 @@ export default Ember.Component.extend(CleansUp, {
return !this.siteSettings.prioritize_username_in_ux && name && name.trim().length > 0;
},
@computed('username', 'topicPostCount')
togglePostsLabel(username, count) {
return I18n.t("topic.filter_to", { username, count });
},
@computed('user.user_fields.@each.value')
publicUserFields() {
const siteUserFields = this.site.get('user_fields');