diff --git a/static/js/controllers.js b/static/js/controllers.js index 357dc6687..f12cb9332 100644 --- a/static/js/controllers.js +++ b/static/js/controllers.js @@ -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; }); }; diff --git a/static/partials/guide.html b/static/partials/guide.html index 00d773304..70e5f459f 100644 --- a/static/partials/guide.html +++ b/static/partials/guide.html @@ -29,10 +29,10 @@
Quay allows a repository to be shared any number of users and to grant those users any level of permissions for a repository
@@ -41,21 +41,22 @@

Using access tokens in place of users Requires Admin Access

- There are many circumstances where it makes sense to not user a user's username and password (deployment scripts, etc). - To support this case, Quay allows the user of access tokens which can be created on a repository and have read and/or write + There are many circumstances where it makes sense to not use a user's username and password (deployment scripts, etc). + To support this case, Quay allows the use of access tokens which can be created on a repository and have read and/or write permissions, without any passwords.
diff --git a/static/partials/repo-admin.html b/static/partials/repo-admin.html index 4f0423ca4..e48b89658 100644 --- a/static/partials/repo-admin.html +++ b/static/partials/repo-admin.html @@ -18,7 +18,7 @@
User Access Permissions - +
@@ -64,49 +64,48 @@
Access Token Permissions - +
- - - - - - - + +
Token DescriptionPermissions
+ + + + + + + + + + + + - - - - - - - - - - - - - -
Token DescriptionPermissions
+ + {{ token.friendlyName }} + +
+ + +
+
+ + + + +
- - {{ token.friendlyName }} - -
- - -
-
- - - - -
- - - -
+ + + + + + + + + +
@@ -175,16 +174,16 @@