Merge branch 'copy-link-message' of https://github.com/Sanjaybhattwebkul/bagisto into copy-link-message
This commit is contained in:
commit
0ae38cda7d
|
|
@ -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
|
||||
Loading…
Reference in New Issue