-
Notifications
You must be signed in to change notification settings - Fork 192
2105 display name #1486
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
2105 display name #1486
Conversation
@rowasc This is ready for review! |
@rowasc Could you review this one please? |
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.
hey Anna, left two non-blocking comments, lmk and I'll re-review :)
@@ -30,44 +30,50 @@ function ( | |||
$rootScope.$emit('setPageTitle', title); | |||
}); | |||
|
|||
$scope.isValid = true; |
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.
shouldn't isValid start assuming false? Just a question since I'm not sure if the repercusion is that it'll be weird in the UX if we change it
UserEndpoint.saveCache(user).$promise.then(function (response) { | ||
if (response.id) { | ||
Notify.notify('notify.user.save_success', {name: user.realname}); | ||
$scope.saving_user = false; |
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.
I think we could do savingUser instead to keep it similar to the others (userSaveUser etc)
@rowasc Have fixed above comments so this is ready for re-review 🎉 |
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.
You rock.
@Obadha2 please test. Thanks!
QA's, passes. 👍 |
This pull request makes the following changes:
Testing checklist:
-Go to settings->users
Click on a random user
Empty one or many of the input-fields
You should see error labels connected to those fields
Click on save
The button should not be disabled
You should stay on the page
Error-labels where information is missing should be visible
Add information in the boxes
Click on save
The button should not be disabled
You should get redirected to the users-list
The information you changed should be saved
I certify that I ran my checklist
Fixes ushahidi/platform#2105 .
Ping @ushahidi/platform