UX: Add copy button to theme public key (#13690)

This commit is contained in:
Kris
2021-07-12 14:34:08 -04:00
committed by GitHub
parent 2f5e63fd7f
commit 729a9856f8
2 changed files with 14 additions and 2 deletions

View File

@@ -78,7 +78,10 @@
{{#if showPublicKey}}
<div class="public-key">
<div class="label">{{i18n "admin.customize.theme.public_key"}}</div>
{{textarea readonly=true value=publicKey}}
<div class="public-key-text-wrapper">
{{textarea class="public-key-value" readonly=true value=publicKey}}
{{copy-button selector="textarea.public-key-value"}}
</div>
</div>
{{else}}
{{#if privateChecked}}