feat: migrate all copy to clipboard actions to v-clipboard
This commit is contained in:
@@ -41,7 +41,7 @@
|
||||
:provide-j-s-o-n-outline="true"
|
||||
:options="{
|
||||
maxLines: Infinity,
|
||||
minLines: '16',
|
||||
minLines: 16,
|
||||
fontSize: '12px',
|
||||
autoScrollEditorIntoView: true,
|
||||
readOnly: true,
|
||||
@@ -113,13 +113,7 @@ export default {
|
||||
}, 1000)
|
||||
},
|
||||
copyResponse() {
|
||||
const aux = document.createElement("textarea")
|
||||
const copy = this.responseBodyText
|
||||
aux.innerText = copy
|
||||
document.body.appendChild(aux)
|
||||
aux.select()
|
||||
document.execCommand("copy")
|
||||
document.body.removeChild(aux)
|
||||
this.$clipboard(this.responseBodyText)
|
||||
this.copyIcon = "done"
|
||||
this.$toast.success(this.$t("copied_to_clipboard"), {
|
||||
icon: "done",
|
||||
|
||||
Reference in New Issue
Block a user