mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
FIX: disable 'save changes' when uploading a profile picture
This commit is contained in:
parent
1fd50634f0
commit
aa61c6068b
2 changed files with 2 additions and 0 deletions
|
@ -3,6 +3,7 @@ import DiscourseController from 'discourse/controllers/controller';
|
||||||
|
|
||||||
export default DiscourseController.extend(ModalFunctionality, {
|
export default DiscourseController.extend(ModalFunctionality, {
|
||||||
uploadedAvatarTemplate: null,
|
uploadedAvatarTemplate: null,
|
||||||
|
saveDisabled: Em.computed.alias("uploading"),
|
||||||
hasUploadedAvatar: Em.computed.or('uploadedAvatarTemplate', 'custom_avatar_upload_id'),
|
hasUploadedAvatar: Em.computed.or('uploadedAvatarTemplate', 'custom_avatar_upload_id'),
|
||||||
|
|
||||||
selectedUploadId: function() {
|
selectedUploadId: function() {
|
||||||
|
|
|
@ -25,6 +25,7 @@
|
||||||
{{avatar-uploader username=username
|
{{avatar-uploader username=username
|
||||||
uploadedAvatarTemplate=uploadedAvatarTemplate
|
uploadedAvatarTemplate=uploadedAvatarTemplate
|
||||||
custom_avatar_upload_id=custom_avatar_upload_id
|
custom_avatar_upload_id=custom_avatar_upload_id
|
||||||
|
uploading=uploading
|
||||||
done="useUploadedAvatar"}}
|
done="useUploadedAvatar"}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue