FIX: Remove unused import

This commit is contained in:
Robin Ward 2018-02-01 18:03:08 -05:00
parent ce507b7957
commit d31417d3af
3 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,4 @@
import computed from 'ember-addons/ember-computed-decorators';
import { popupAjaxError } from 'discourse/lib/ajax-error';
import PenaltyController from 'admin/mixins/penalty-controller';
export default Ember.Controller.extend(PenaltyController, {

View File

@ -8,5 +8,6 @@ export default htmlHelper((user, size) => {
}
const avatarTemplate = Ember.get(user, 'avatar_template');
return avatarImg({ size, avatarTemplate });
return avatarImg(addExtraUserClasses(user, { size, avatarTemplate }));
});

View File

@ -49,6 +49,7 @@ export function avatarImg(options, getURL) {
getURL = getURL || Discourse.getURLWithCDN;
const size = translateSize(options.size);
console.log(size);
const url = avatarUrl(options.avatarTemplate, size);
// We won't render an invalid url