]> cat aescling's git repositories - mastodon.git/commitdiff
Add button to conveniently copy OAuth code (#11065)
authorThibG <thib@sitedethib.com>
Wed, 12 Jun 2019 22:14:42 +0000 (00:14 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Wed, 12 Jun 2019 22:14:42 +0000 (00:14 +0200)
app/views/oauth/authorizations/show.html.haml

index ad523600740527cb6d0fb3e00e032ef85801bf36..c3c9960d8acfd216603f7622757486a7483f3169 100644 (file)
@@ -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')