Fix some tabs and some spelling errors, prevent empty tokens, move the tooltips to the left.
This commit is contained in:
parent
faf6a5c497
commit
982fdd4c5f
3 changed files with 64 additions and 62 deletions
|
@ -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;
|
||||
});
|
||||
};
|
||||
|
|
Reference in a new issue