mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
`copy code` button now show a `Copied!` tooltip when clicked. It implements a similar function used on `saved as draft` notice. We need to modify the copy_code_button template to limit data-tippy-trigger to not include click; otherwise, repeated clicks to copy code will incorrectly also display the "Copy code" tooltip alternating with "Copied". Fixes part of #21036.
4 lines
210 B
Handlebars
4 lines
210 B
Handlebars
<button class="btn pull-left copy_button_base copy_codeblock" data-tippy-content="{{t 'Copy code' }}" data-tippy-trigger="mouseenter" aria-label="{{t 'Copy code' }}">
|
|
{{> copy_to_clipboard_svg }}
|
|
</button>
|