-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avatar upload #380
Avatar upload #380
Conversation
By analyzing the blame information on this pull request, we identified @DeepDiver1975, @skjnldsv and @jancborchardt to be potential reviewers |
Current coverage is 12.45%@@ master #380 diff @@
==========================================
Files 43 45 +2
Lines 773 795 +22
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
+ Hits 97 99 +2
- Misses 676 696 +20
Partials 0 0
|
Yep, why @Henni :'( |
Most of the code of #342 is already on master and the rebase was a bit messy. |
:) |
Set state to developing because it is currently not possible to change the image. |
It is now possible to change the avatar of a contact. Remaining todos:
We can fix these remaining todos in a separate PR, in my opinion. |
I have an issue! :) |
|
I think we should prevent picture too big for now, or we could have people having the same issue than I have. A simple alert should be fine for now! :) |
I added a file size check to prevent further errors. I think now we can merge! 👍 |
@skjnldsv travis is failing - please have a look ... |
Oups, my bad @DeepDiver1975 , wrong copy/paste. |
@@ -11,17 +11,21 @@ angular.module('contactsApp') | |||
var input = element.find('input'); | |||
input.bind('change', function() { | |||
var file = input.get(0).files[0]; | |||
var reader = new FileReader(); | |||
if (file.size > 1024*1024) { // 1 MB | |||
OC.Notification.showTemporary(t('contacts', 'The selected image is too big')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should tell the user the max size
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good Idea!
@DeepDiver1975 done |
No description provided.