Lots of small UI fixes

Fixes #1369
Fixes #1368
This commit is contained in:
Joseph Schorr 2016-04-14 15:12:54 -04:00
parent cf04fedd6a
commit 1ce47fd228
6 changed files with 15 additions and 8 deletions

View file

@ -13,16 +13,15 @@ angular.module('quay').directive('signupForm', function () {
'hideRegisteredMessage': '@hideRegisteredMessage',
'userRegistered': '&userRegistered'
},
controller: function($scope, $location, $timeout, ApiService, KeyService, UserService, Config, UIService, ExternalLoginService) {
$('.form-signup').popover();
controller: function($scope, $location, $timeout, ApiService, KeyService, UserService, Config, ExternalLoginService) {
$scope.awaitingConfirmation = false;
$scope.registering = false;
$scope.Config = Config;
$scope.registerIssue = null;
$scope.register = function() {
UIService.hidePopover('#signupButton');
$scope.registering = true;
$scope.registerIssue = null;
if ($scope.inviteCode) {
$scope.newUser['invite_code'] = $scope.inviteCode;
@ -45,7 +44,7 @@ angular.module('quay').directive('signupForm', function () {
UserService.load();
}, function(result) {
$scope.registering = false;
UIService.showFormError('#signupButton', result);
$scope.registerIssue = ApiService.getErrorMessage(result);
});
};
}