allow forcing of name if needed

This commit is contained in:
Sam 2014-12-30 11:06:23 +11:00
parent 132713850a
commit 8cfd14120c

View file

@ -33,7 +33,9 @@ export default Ember.Component.extend(StringBuffer, {
className += " num";
}
buffer.push("<th data-sort-order='" + options.order + "' class='"+ className +"'>" + I18n.t(options.name) + sortIcon + "</th>");
var name = options.forceName || I18n.t(options.name);
buffer.push("<th data-sort-order='" + options.order + "' class='"+ className +"'>" + name + sortIcon + "</th>");
},
renderString: function(buffer){