Fixed share modal copy button issue..
This commit is contained in:
parent
9f172b9c0b
commit
8311d7f1da
9
resources/assets/js/mixins/global.js
vendored
9
resources/assets/js/mixins/global.js
vendored
@ -617,11 +617,12 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
onCopyLink(event) {
|
onCopyLink() {
|
||||||
let type = 'success';
|
let type = 'success';
|
||||||
let copyText = document.querySelector('#dynamic-share-component #hidden-share');
|
let copy_html = document.getElementById('share');
|
||||||
copyText.select();
|
|
||||||
document.execCommand("copy");
|
copy_html.select();
|
||||||
|
document.execCommand('copy');
|
||||||
|
|
||||||
this.$notify({
|
this.$notify({
|
||||||
message: this.share.success_message,
|
message: this.share.success_message,
|
||||||
|
@ -5,14 +5,13 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="my-3">
|
<div class="my-3">
|
||||||
<x-form.input.text
|
<x-form.input.input
|
||||||
name="share"
|
name="share"
|
||||||
value="{{ $signedUrl }}"
|
value="{{ $signedUrl }}"
|
||||||
ref="clone"
|
ref="clone"
|
||||||
@click="onCopyLink()"
|
@click="onCopyLink()"
|
||||||
class="bg-gray-100 appearance-none border-2 border-gray-100 rounded w-full py-2 px-4 text-gray-700 leading-tight cursor-pointer focus:outline-none focus:ring-transparent focus:border-transparent"
|
class="bg-gray-100 appearance-none border-2 border-gray-100 rounded w-full py-2 px-4 text-gray-700 leading-tight cursor-pointer focus:outline-none focus:ring-transparent focus:border-transparent"
|
||||||
/>
|
/>
|
||||||
<x-form.input.hidden name="hidden-share" value="{{ $signedUrl }}" />
|
|
||||||
|
|
||||||
<div data-copied class="hidden h-10 items-center justify-center">
|
<div data-copied class="hidden h-10 items-center justify-center">
|
||||||
<span
|
<span
|
||||||
|
Loading…
x
Reference in New Issue
Block a user