Use a slightly different icon for suggesting upload functionality

Refs #249.
This commit is contained in:
Franz Liedke 2016-04-17 22:24:09 +09:00
parent 5f60297eb1
commit 323339190c
No known key found for this signature in database
GPG Key ID: 9A0231A879B055F4
2 changed files with 4 additions and 4 deletions

View File

@ -18998,7 +18998,7 @@ System.register('flarum/components/AvatarEditor', ['flarum/Component', 'flarum/h
{ className: user.avatarUrl() ? "Dropdown-toggle" : "Dropdown-toggle AvatarEditor--noAvatar",
'data-toggle': 'dropdown',
onclick: this.quickUpload.bind(this) },
this.loading ? LoadingIndicator.component() : user.avatarUrl() ? icon('pencil') : icon('upload')
this.loading ? LoadingIndicator.component() : user.avatarUrl() ? icon('pencil') : icon('plus-circle')
),
m(
'ul',

View File

@ -38,9 +38,9 @@ export default class AvatarEditor extends Component {
<div className={'AvatarEditor Dropdown ' + this.props.className + (this.loading ? ' loading' : '')}>
{avatar(user)}
<a className={ user.avatarUrl() ? "Dropdown-toggle" : "Dropdown-toggle AvatarEditor--noAvatar" }
data-toggle="dropdown"
onclick={this.quickUpload.bind(this)}>
{this.loading ? LoadingIndicator.component() : (user.avatarUrl() ? icon('pencil') : icon('upload'))}
data-toggle="dropdown"
onclick={this.quickUpload.bind(this)}>
{this.loading ? LoadingIndicator.component() : (user.avatarUrl() ? icon('pencil') : icon('plus-circle'))}
</a>
<ul className="Dropdown-menu Menu">
{listItems(this.controlItems().toArray())}