mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-08 07:00:54 +03:00
added copied text after copy button click
This commit is contained in:
@@ -157,6 +157,12 @@ module.exports = function(state, emit, archive) {
|
||||
function copy(event) {
|
||||
event.stopPropagation();
|
||||
copyToClipboard(archive.url);
|
||||
const text = event.target.lastChild;
|
||||
text.textContent = state.translate('copiedUrl');
|
||||
setTimeout(
|
||||
() => (text.textContent = state.translate('copyUrlHover')),
|
||||
1000
|
||||
);
|
||||
}
|
||||
|
||||
function del(event) {
|
||||
|
||||
Reference in New Issue
Block a user