diff options
author | ThibG <thib@sitedethib.com> | 2019-06-13 00:14:42 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2019-06-13 00:14:42 +0200 |
commit | c98573fdf9da1e505bd16d11ef850c07316891d3 (patch) | |
tree | 64a02f10a7b23db2ddb6e9849a058c2c02860ea3 /app/views/oauth | |
parent | faafc3ae25378121148356b60d1bef6f57013069 (diff) |
Add button to conveniently copy OAuth code (#11065)
Diffstat (limited to 'app/views/oauth')
-rw-r--r-- | app/views/oauth/authorizations/show.html.haml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/views/oauth/authorizations/show.html.haml b/app/views/oauth/authorizations/show.html.haml index ad5236007..c3c9960d8 100644 --- a/app/views/oauth/authorizations/show.html.haml +++ b/app/views/oauth/authorizations/show.html.haml @@ -1,4 +1,7 @@ .form-container - .flash-message + .flash-message.simple_form %p= t('doorkeeper.authorizations.show.title') - %input{ type: 'text', class: 'oauth-code', readonly: true, value: params[:code], onClick: 'select()' } + .input-copy + .input-copy__wrapper + %input{ type: 'text', class: 'oauth-code', spellcheck: 'false', readonly: true, value: params[:code] } + %button{ type: :button }= t('generic.copy') |