Do-come-changes
This commit is contained in:
parent
7470ea71cf
commit
24d5d8b6dc
|
|
@ -117,8 +117,6 @@
|
|||
{{ __('shop::app.customer.account.wishlist.shared-link') }}
|
||||
</label>
|
||||
|
||||
<p id="copy-message" class="d-none bg-dark text-white text-bold">Link copied</p>
|
||||
|
||||
<div class="input-group" v-if="isWishlistShared">
|
||||
<input
|
||||
type="text"
|
||||
|
|
@ -132,6 +130,8 @@
|
|||
<button
|
||||
class="btn btn-outline-secondary theme-btn"
|
||||
style="padding: 6px 20px"
|
||||
id="copy-btn"
|
||||
title="Copy Link"
|
||||
type="button"
|
||||
@click="copyToClipboard"
|
||||
>
|
||||
|
|
@ -195,8 +195,8 @@
|
|||
|
||||
copyToClipboard: function() {
|
||||
this.$refs.sharedLink.focus();
|
||||
document.getElementById("copy-message").classList.add("d-block");;
|
||||
document.execCommand('copy');
|
||||
showCopyMessage();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
@ -212,5 +212,11 @@
|
|||
|
||||
return;
|
||||
}
|
||||
|
||||
function showCopyMessage()
|
||||
{
|
||||
$('#copy-btn').text('Copied!');
|
||||
$('#copy-btn').css({backgroundColor: '#146e24'});
|
||||
}
|
||||
</script>
|
||||
@endpush
|
||||
Loading…
Reference in New Issue