feat: supported copy to clipboard utlity

This commit is contained in:
liyasthomas
2021-07-31 22:50:08 +05:30
parent 9441c76a12
commit 98d2b2ee9c
11 changed files with 13 additions and 24 deletions

View File

@@ -589,6 +589,7 @@ import { getCurrentStrategyID, sendNetworkRequest } from "~/helpers/network"
import { getSettingSubject, useSetting } from "~/newstore/settings"
import { addGraphqlHistoryEntry } from "~/newstore/history"
import { logHoppRequestRunToAnalytics } from "~/helpers/fb/analytics"
import { copyToClipboard } from "~/helpers/utils/clipboard"
export default defineComponent({
components: { Splitpanes, Pane },
@@ -878,7 +879,7 @@ export default defineComponent({
setTimeout(() => (this.copyVariablesIcon = "content_copy"), 1000)
},
copyToClipboard(content) {
this.$clipboard(content)
copyToClipboard(content)
this.$toast.success(this.$t("copied_to_clipboard"), {
icon: "done",
})