|
@ -192,7 +192,7 @@ |
|
|
<span v-if="!serverUtil.isEmptyOrHiddenDid(confirmerId)"> |
|
|
<span v-if="!serverUtil.isEmptyOrHiddenDid(confirmerId)"> |
|
|
<button |
|
|
<button |
|
|
@click=" |
|
|
@click=" |
|
|
copyToClipboard( |
|
|
copyTextToClipboard( |
|
|
'The DID of ' + confirmerId, |
|
|
'The DID of ' + confirmerId, |
|
|
confirmerId, |
|
|
confirmerId, |
|
|
) |
|
|
) |
|
@ -238,7 +238,7 @@ |
|
|
> |
|
|
> |
|
|
<button |
|
|
<button |
|
|
@click=" |
|
|
@click=" |
|
|
copyToClipboard( |
|
|
copyTextToClipboard( |
|
|
'The DID of ' + confsVisibleTo, |
|
|
'The DID of ' + confsVisibleTo, |
|
|
confsVisibleTo, |
|
|
confsVisibleTo, |
|
|
) |
|
|
) |
|
@ -309,7 +309,9 @@ |
|
|
contacts can see more details: |
|
|
contacts can see more details: |
|
|
<a |
|
|
<a |
|
|
class="text-blue-500" |
|
|
class="text-blue-500" |
|
|
@click="copyToClipboard('A link to this page', windowLocation)" |
|
|
@click=" |
|
|
|
|
|
copyTextToClipboard('A link to this page', windowLocation) |
|
|
|
|
|
" |
|
|
>click to copy this page info</a |
|
|
>click to copy this page info</a |
|
|
> |
|
|
> |
|
|
and see if they can make an introduction. Someone is connected to |
|
|
and see if they can make an introduction. Someone is connected to |
|
@ -332,7 +334,9 @@ |
|
|
If you'd like an introduction, |
|
|
If you'd like an introduction, |
|
|
<a |
|
|
<a |
|
|
class="text-blue-500" |
|
|
class="text-blue-500" |
|
|
@click="copyToClipboard('A link to this page', windowLocation)" |
|
|
@click=" |
|
|
|
|
|
copyTextToClipboard('A link to this page', windowLocation) |
|
|
|
|
|
" |
|
|
>share this page with them and ask if they'll tell you more about |
|
|
>share this page with them and ask if they'll tell you more about |
|
|
about the participants.</a |
|
|
about the participants.</a |
|
|
> |
|
|
> |
|
@ -360,7 +364,7 @@ |
|
|
<span v-if="!serverUtil.isEmptyOrHiddenDid(visDid)"> |
|
|
<span v-if="!serverUtil.isEmptyOrHiddenDid(visDid)"> |
|
|
<button |
|
|
<button |
|
|
@click=" |
|
|
@click=" |
|
|
copyToClipboard('The DID of ' + visDid, visDid) |
|
|
copyTextToClipboard('The DID of ' + visDid, visDid) |
|
|
" |
|
|
" |
|
|
> |
|
|
> |
|
|
<font-awesome |
|
|
<font-awesome |
|
@ -433,7 +437,7 @@ |
|
|
import * as yaml from "js-yaml"; |
|
|
import * as yaml from "js-yaml"; |
|
|
import * as R from "ramda"; |
|
|
import * as R from "ramda"; |
|
|
import { Component, Vue } from "vue-facing-decorator"; |
|
|
import { Component, Vue } from "vue-facing-decorator"; |
|
|
import { useClipboard } from "@vueuse/core"; |
|
|
import { copyToClipboard } from "../services/ClipboardService"; |
|
|
import { RouteLocationNormalizedLoaded, Router } from "vue-router"; |
|
|
import { RouteLocationNormalizedLoaded, Router } from "vue-router"; |
|
|
import QuickNav from "../components/QuickNav.vue"; |
|
|
import QuickNav from "../components/QuickNav.vue"; |
|
|
import { NotificationIface } from "../constants/app"; |
|
|
import { NotificationIface } from "../constants/app"; |
|
@ -784,16 +788,21 @@ export default class ConfirmGiftView extends Vue { |
|
|
* @param description - Description of copied content |
|
|
* @param description - Description of copied content |
|
|
* @param text - Text to copy |
|
|
* @param text - Text to copy |
|
|
*/ |
|
|
*/ |
|
|
copyToClipboard(description: string, text: string): void { |
|
|
async copyTextToClipboard(description: string, text: string): Promise<void> { |
|
|
useClipboard() |
|
|
try { |
|
|
.copy(text) |
|
|
await copyToClipboard(text); |
|
|
.then(() => { |
|
|
this.notify.toast( |
|
|
this.notify.toast( |
|
|
NOTIFY_COPIED_TO_CLIPBOARD.title, |
|
|
NOTIFY_COPIED_TO_CLIPBOARD.title, |
|
|
NOTIFY_COPIED_TO_CLIPBOARD.message(description), |
|
|
NOTIFY_COPIED_TO_CLIPBOARD.message(description), |
|
|
TIMEOUTS.SHORT, |
|
|
TIMEOUTS.SHORT, |
|
|
); |
|
|
); |
|
|
} catch (error) { |
|
|
}); |
|
|
this.$logAndConsole( |
|
|
|
|
|
`Error copying ${description} to clipboard: ${error}`, |
|
|
|
|
|
true, |
|
|
|
|
|
); |
|
|
|
|
|
this.notify.error(`Failed to copy ${description} to clipboard.`); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
@ -875,7 +884,7 @@ export default class ConfirmGiftView extends Vue { |
|
|
* Handles share functionality based on platform capabilities |
|
|
* Handles share functionality based on platform capabilities |
|
|
*/ |
|
|
*/ |
|
|
async onClickShareClaim(): Promise<void> { |
|
|
async onClickShareClaim(): Promise<void> { |
|
|
this.copyToClipboard("A link to this page", this.windowLocation); |
|
|
this.copyTextToClipboard("A link to this page", this.windowLocation); |
|
|
window.navigator.share({ |
|
|
window.navigator.share({ |
|
|
title: "Help Connect Me", |
|
|
title: "Help Connect Me", |
|
|
text: "I'm trying to find the full details of this claim. Can you help me?", |
|
|
text: "I'm trying to find the full details of this claim. Can you help me?", |
|
|