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

Closes #2638: Copy Button for Secrets #2848

Closed
wants to merge 3 commits into from
Closed

Closes #2638: Copy Button for Secrets #2848

wants to merge 3 commits into from

Conversation

hSaria
Copy link
Contributor

@hSaria hSaria commented Feb 3, 2019

Fixes: #2638

Added a copy button after unlocking secret.

As mentioned in #2638, the clipboard cannot be modified while running an asynchronous operation (like AJAX call) since the user-triggered event would have been processed before the response is received.
There are hacky solutions, but I'd rather keep things simple. There is a draft API that addresses this challenge, but its support is not wide enough, yet.

Note: I have purposefully avoided adding the copy button to the secret_edit.html page as I see it as unnecessary (you wouldn't normally go to edit to unlock then copy the secret). However, if you'd like it there for consistency, you can copy the button from secret.html (that's the only change needed).

@hSaria
Copy link
Contributor Author

hSaria commented Feb 3, 2019

copy-secret

@jeremystretch
Copy link
Member

Looks like the changes from #2849 got caught in this PR too. Can you separate the origin branches so we avoid conflating the two in a single PR please?

@hSaria
Copy link
Contributor Author

hSaria commented Feb 6, 2019

Oh sorry. My bad. I'll create a new pull request and reference it here.

@hSaria
Copy link
Contributor Author

hSaria commented Feb 6, 2019

#2860 created with a fixed origin.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

'copy' button to copy passwords next to unlock
2 participants