Skip to content

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

  1. Go to http://127.0.0.1:3000/groups/flightjs/-/runners
  2. Click on the Register a group runner button
  3. 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.

Edited by Eduardo Sanz García

Merge request reports

Loading