summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorMayra Cabrera <mcabrera@gitlab.com>2018-03-29 20:11:36 -0600
committerMayra Cabrera <mcabrera@gitlab.com>2018-04-06 21:20:16 -0500
commit345ac03b7afb1dc9b941c53bc45cc3dfcf22e61c (patch)
tree42da609254928d746a961465d9ecfbff3ab71ad4 /app/models
parent370fc05da7f95bf6621867a71d51493cf3899e25 (diff)
downloadgitlab-ce-345ac03b7afb1dc9b941c53bc45cc3dfcf22e61c.tar.gz
Address UX review
- Keep 'Deploy Section' open upon save, otherwise the token might get lost - When an error appears, display the error inside the form and also keep the Deploy Section open - Changue copy of revoke modal
Diffstat (limited to 'app/models')
-rw-r--r--app/models/deploy_token.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/deploy_token.rb b/app/models/deploy_token.rb
index 089b4343f41..475ad06906a 100644
--- a/app/models/deploy_token.rb
+++ b/app/models/deploy_token.rb
@@ -19,8 +19,8 @@ class DeployToken < ActiveRecord::Base
update!(revoked: true)
end
- def self.redis_shared_state_key(user_id)
- "gitlab:personal_access_token:#{user_id}"
+ def redis_shared_state_key(user_id)
+ "gitlab:deploy_token:#{project_id}:#{user_id}"
end
def active?