added copied text after copy button click

This commit is contained in:
Danny Coates 2018-10-30 15:55:10 -07:00
parent c359678226
commit 891ffc20af
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
2 changed files with 8 additions and 2 deletions

View file

@ -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) {