diff --git a/packages/playground/src/portal/twin_view.vue b/packages/playground/src/portal/twin_view.vue index 1f574b6c4e..bdf40fb590 100644 --- a/packages/playground/src/portal/twin_view.vue +++ b/packages/playground/src/portal/twin_view.vue @@ -33,7 +33,12 @@ {{ profileManager.profile?.twinId.toString() }} - {{ profileManager.profile?.address }} + + + {{ profileManager.profile?.address }} + mdi-content-copy + + {{ profileManager.profile?.relay }} @@ -51,6 +56,7 @@ import { generatePublicKey } from "@threefold/rmb_direct_client"; import { onMounted, ref } from "vue"; import { useProfileManager } from "../stores"; +import { createCustomToast, ToastType } from "../utils/custom_toast"; import { getGrid } from "../utils/grid"; const profileManager = useProfileManager(); @@ -94,6 +100,11 @@ async function UpdateRelay() { console.log("could not update relay or pk, Error: ", e); } } + +function copy(id: string) { + navigator.clipboard.writeText(id); + createCustomToast("Address copied to clipboard", ToastType.success); +}