parent
cf04fedd6a
commit
1ce47fd228
6 changed files with 15 additions and 8 deletions
|
@ -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);
|
||||
});
|
||||
};
|
||||
}
|
||||
|
|
Reference in a new issue