FIX: Badge icons disappeared

This commit is contained in:
Robin Ward 2017-07-27 16:57:26 -04:00
parent 41afd9c818
commit 1b1fd64639

View File

@ -3,5 +3,5 @@ import { iconHTML } from 'discourse-common/lib/icon-library';
export default htmlHelper(function(str) {
if (Ember.isEmpty(str)) { return ""; }
return (str.indexOf('fa-') === 0) ? iconHTML(str) : `<img src='${str}'>`;
return (str.indexOf('fa-') === 0) ? iconHTML(str.replace('fa-', '')) : `<img src='${str}'>`;
});