From: ThibG Date: Wed, 12 Jun 2019 22:14:42 +0000 (+0200) Subject: Add button to conveniently copy OAuth code (#11065) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=c98573fdf9da1e505bd16d11ef850c07316891d3;p=mastodon.git Add button to conveniently copy OAuth code (#11065) --- 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')