Commit 3fdb2490 authored by Bryan  BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

add copy to clipboard

parent d47106ff
......@@ -19,6 +19,9 @@
<v-btn dark fab bottom color="primary" small :href="`mailto:?subject=Awesomeness!&amp;body=Checkout this page!<a href='${pageUrl}'>${pageUrl}</a>`" target="_blank">
<v-icon>mdi-email</v-icon>
</v-btn>
<v-btn dark fab bottom color="primary" small v-on:click="copySign()" title="Copy to clipboard">
<v-icon>mdi-clipboard</v-icon>
</v-btn>
</v-speed-dial>
</div>
......@@ -31,6 +34,11 @@
return {
dialShare: false
}
},
methods: {
copySign() {
navigator.clipboard.writeText(this.pageUrl);
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment