Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Feature/sup 2592 #584

Merged
merged 6 commits into from
Nov 30, 2015
Merged

Feature/sup 2592 #584

merged 6 commits into from
Nov 30, 2015

Conversation

tladendo
Copy link
Contributor

@tladendo
Copy link
Contributor Author

I consider this the first round of cleanup. I switched the errors to use ng-messages, and generally tried to make things cleaner, clearer, and less redundant.

// username - make sure it exists
UserService.validateUserHandle(vm.username).then(function(data) {
if (data.valid) {
// username doesn't exist
vm.usernameExists = false;
vm.loginErrors['username-nonexistant'] = true;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we have constant for the string literal? May be at the top of the controller if used only in this controller otherwise in constants object.
Same for other login error strings.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, I'll add an enum for these.

tladendo added a commit that referenced this pull request Nov 30, 2015
@tladendo tladendo merged commit 0d48071 into dev Nov 30, 2015
@nlitwin nlitwin deleted the feature/SUP-2592 branch January 26, 2016 22:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants