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

Adds copy content button #12584

Merged
merged 4 commits into from
Jul 6, 2023
Merged

Adds copy content button #12584

merged 4 commits into from
Jul 6, 2023

Conversation

abhi1693
Copy link
Member

Fixes: #12499

I have created a new copy_content template that I have used in several places to provide the copy to clipboard functionality. I have also refactored copy-token code to utlize this new template.

@jeremystretch
Copy link
Member

I wonder if it might be a more scalable approach to introduce a CSS class that display a "copy" button on hover, appended to the element? That would obviate the need for any substantial changes to the underlying tables or templates. It should be feasible, but I'll need to track down an example.

@jeremystretch jeremystretch merged commit 62bdb90 into develop Jul 6, 2023
@jeremystretch jeremystretch deleted the feat/12499-copy-ip branch July 6, 2023 18:19
@jeremystretch
Copy link
Member

Thanks @abhi1693!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 6, 2023
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-to-clipboard functionality for IPs
3 participants