Merge branch 'copy-link-message' of https://github.com/Sanjaybhattwebkul/bagisto into copy-link-message

This commit is contained in:
Sanjay 2022-05-24 12:04:48 +05:30
commit 0ae38cda7d
1 changed files with 10 additions and 2 deletions

View File

@ -130,6 +130,8 @@
<button
class="btn btn-outline-secondary theme-btn"
style="padding: 6px 20px"
id="copy-btn"
title="{{ __('shop::app.customer.account.wishlist.copy-link') }}"
type="button"
@click="copyToClipboard"
>
@ -193,8 +195,8 @@
copyToClipboard: function() {
this.$refs.sharedLink.focus();
document.execCommand('copy');
showCopyMessage();
}
}
});
@ -210,5 +212,11 @@
return;
}
function showCopyMessage()
{
$('#copy-btn').text("{{ __('shop::app.customer.account.wishlist.copied') }}");
$('#copy-btn').css({backgroundColor: '#146e24'});
}
</script>
@endpush