FIX: Don't double escape the category title

This commit is contained in:
Robin Ward 2016-09-22 21:13:08 -04:00
parent 262297965f
commit f90e1ce847
3 changed files with 3 additions and 10 deletions

View File

@ -1,10 +1,3 @@
import computed from 'ember-addons/ember-computed-decorators';
export default Em.Component.extend({
tagName: 'h3',
@computed("category.name")
categoryName(name) {
return Handlebars.Utils.escapeExpression(name);
}
export default Ember.Component.extend({
tagName: 'h3'
});

View File

@ -3,7 +3,7 @@
{{fa-icon 'lock'}}
{{/if}}
<span class="category-name">{{categoryName}}</span>
<span class="category-name">{{category.name}}</span>
{{#if category.logo_url}}
<div>{{cdn-img src=category.logo_url class="category-logo"}}</div>