mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 12:43:54 -06:00
FIX: Remove unused import
This commit is contained in:
parent
ce507b7957
commit
d31417d3af
@ -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, {
|
||||
|
@ -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 }));
|
||||
});
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user