FIX: Don't double escape the category title
This commit is contained in:
parent
262297965f
commit
f90e1ce847
|
@ -1,10 +1,3 @@
|
||||||
import computed from 'ember-addons/ember-computed-decorators';
|
export default Ember.Component.extend({
|
||||||
|
tagName: 'h3'
|
||||||
export default Em.Component.extend({
|
|
||||||
tagName: 'h3',
|
|
||||||
|
|
||||||
@computed("category.name")
|
|
||||||
categoryName(name) {
|
|
||||||
return Handlebars.Utils.escapeExpression(name);
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
{{fa-icon 'lock'}}
|
{{fa-icon 'lock'}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
<span class="category-name">{{categoryName}}</span>
|
<span class="category-name">{{category.name}}</span>
|
||||||
|
|
||||||
{{#if category.logo_url}}
|
{{#if category.logo_url}}
|
||||||
<div>{{cdn-img src=category.logo_url class="category-logo"}}</div>
|
<div>{{cdn-img src=category.logo_url class="category-logo"}}</div>
|
||||||
|
|
Loading…
Reference in New Issue