Emit `copy` event when token is manually copied
What does this MR do and why?
In the InputCopyToggleVisibility
component, the copy
event is
emitted when user clicks on the ClipboardButton
. With this change, the
copy
event is also emitted when when the user copies the token
using the keyboard.
Screenshots or screen recordings
Screen_Recording_2022-05-30_at_16.16.59
How to set up and validate locally
- Go to http://127.0.0.1:3000/groups/flightjs/-/runners
- Click on the
Register a group runner
button - Copy the token using both, the button or the keyboard. Both should trigger the toast notification.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Eduardo Sanz García