This is an automated email from the ASF dual-hosted git repository.
machristie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airavata-django-portal.git
The following commit(s) were added to refs/heads/master by this push:
new 8237e5b4 Add a copy to clipboard button for the access token
8237e5b4 is described below
commit 8237e5b4bf4ed614c9679d7e428c37b375077904
Author: Marcus Christie <[email protected]>
AuthorDate: Wed Jun 21 10:49:11 2023 -0400
Add a copy to clipboard button for the access token
---
.../auth/templates/django_airavata_auth/login-desktop-success.html | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/django_airavata/apps/auth/templates/django_airavata_auth/login-desktop-success.html
b/django_airavata/apps/auth/templates/django_airavata_auth/login-desktop-success.html
index 060bae4e..4eaba7e6 100644
---
a/django_airavata/apps/auth/templates/django_airavata_auth/login-desktop-success.html
+++
b/django_airavata/apps/auth/templates/django_airavata_auth/login-desktop-success.html
@@ -9,7 +9,8 @@
<h4 class="alert-heading">Logged in!</h4>
</div>
{% if show_code %}
- <textarea style="width: 100%" rows="5" onfocus="this.select()">{{ code
}}</textarea>
+ <textarea id="code-textarea" style="width: 100%" rows="5"
onfocus="this.select()">{{ code }}</textarea>
+ <button class="btn btn-primary"
onclick="navigator.clipboard.writeText(document.getElementById('code-textarea').value)">Copy</button>
{% endif %}
</div>
</main>