https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36275

Emmanuel Bétemps <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #180368|0                           |1
        is obsolete|                            |

--- Comment #16 from Emmanuel Bétemps <[email protected]> ---
Created attachment 180405
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=180405&action=edit
Bug 36275: 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

https://bugs.koha-community.org/show_bug.cgi?id=36275
Signed-off-by: Emmanuel Bétemps <[email protected]>
Signed-off-by: Nick Clemens <[email protected]>
Signed-off-by: Emmanuel Bétemps <[email protected]>

-- 
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/

Reply via email to