Do-come-changes

This commit is contained in:
Sanjay 2022-05-19 16:25:32 +05:30
parent 7470ea71cf
commit 24d5d8b6dc
1 changed files with 9 additions and 3 deletions

View File

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