diff --git a/js/forum/dist/app.js b/js/forum/dist/app.js index 7abd280a1..3c04be7fe 100644 --- a/js/forum/dist/app.js +++ b/js/forum/dist/app.js @@ -18995,10 +18995,10 @@ System.register('flarum/components/AvatarEditor', ['flarum/Component', 'flarum/h avatar(user), m( 'a', - { className: 'Dropdown-toggle', + { className: user.avatarUrl() ? "Dropdown-toggle" : "Dropdown-toggle AvatarEditor--noAvatar", 'data-toggle': 'dropdown', onclick: this.quickUpload.bind(this) }, - this.loading ? LoadingIndicator.component() : icon('pencil') + this.loading ? LoadingIndicator.component() : user.avatarUrl() ? icon('pencil') : icon('upload') ), m( 'ul', diff --git a/js/forum/src/components/AvatarEditor.js b/js/forum/src/components/AvatarEditor.js index ac525d64d..5986e0356 100644 --- a/js/forum/src/components/AvatarEditor.js +++ b/js/forum/src/components/AvatarEditor.js @@ -37,10 +37,10 @@ export default class AvatarEditor extends Component { return (
{avatar(user)} - - {this.loading ? LoadingIndicator.component() : icon('pencil')} + + {this.loading ? LoadingIndicator.component() : (user.avatarUrl() ? icon('pencil') : icon('upload'))}