Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a 'copy to clipboard' button in the API token page #1345

Open
prioux opened this issue Aug 25, 2023 · 2 comments · May be fixed by #1346
Open

Add a 'copy to clipboard' button in the API token page #1345

prioux opened this issue Aug 25, 2023 · 2 comments · May be fixed by #1346

Comments

@prioux
Copy link
Member

prioux commented Aug 25, 2023

CBRAIN has a page that allows users to generate an API token.

When the token is generated, it is shown int he page and users are expected to write it down/copy it somewhere.

I suggest that just besides the token we had a nice 'copy to clipboard' button.

@MontrealSergiy
Copy link
Contributor

@MontrealSergiy
Copy link
Contributor

MontrealSergiy commented Aug 28, 2023

also there is a dedicated library, with an old backend https://clipboardjs.com/ with cool button and 'your text is copied' message

https://www.golinuxcloud.com/javascript-copy-to-clipboard/ recommends it as a polyfill/fall-back solution compatible with old browsers.

@MontrealSergiy MontrealSergiy linked a pull request Aug 29, 2023 that will close this issue
@MontrealSergiy MontrealSergiy self-assigned this Sep 4, 2023
@MontrealSergiy MontrealSergiy linked a pull request Sep 18, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants