Fix some tabs and some spelling errors, prevent empty tokens, move the tooltips to the left.

This commit is contained in:
yackob03 2013-10-17 16:50:58 -04:00
parent faf6a5c497
commit 982fdd4c5f
3 changed files with 64 additions and 62 deletions

View file

@ -486,6 +486,8 @@ function RepoAdminCtrl($scope, Restangular, $routeParams, $rootScope) {
var permissionPost = Restangular.one('repository/' + namespace + '/' + name + '/tokens/');
permissionPost.customPOST(friendlyName).then(function(newToken) {
$scope.newToken.friendlyName = '';
$scope.createTokenForm.$setPristine();
$scope.tokens[newToken.code] = newToken;
});
};