added copied text after copy button click
This commit is contained in:
parent
c359678226
commit
891ffc20af
2 changed files with 8 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue