https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36275
--- Comment #1 from Paul Derscheid <[email protected]> --- Created attachment 180263 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=180263&action=edit Bug 36725: The displayed values for Client ID and Secret need copy to clipboard buttons in apikeys.tt This patch adds: - A new include with a prepared button that sets the passed copy_to_clipboard_value as the data-value attribute. - A script, which is an IIFE that can also be used elsewhere that then adds event listeners for clicks on the above buttons (or other buttons with data-copy-to-clipboard) - The included buttons and the associated js to apikeys.tt. To test: 1) Activate the RESTOAuth2ClientCredentials syspref. 2) Search for a patron, e.g. 42 3) Go to more -> Manage API keys 4) Generate a new client id/key pair 5) Notice that there are copy to clipboard buttons next to the client id and secret 6) Click one of them 7) Paste your clipboard into the top search input for example 8) Verify it works and the value is identical to the value you copied 9) Sign off -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
