diff --git a/src/views/QuickActionBvcEndView.vue b/src/views/QuickActionBvcEndView.vue
index f02af128..f3c0969d 100644
--- a/src/views/QuickActionBvcEndView.vue
+++ b/src/views/QuickActionBvcEndView.vue
@@ -69,10 +69,17 @@
{{ claimCountWithHiddenText }}
- so if you expected but do not see details from someone then ask them to
- check that their activity is visible to you on their Contacts
-
- page.
+ If you don't see expected info above for someone, ask them to check that
+ their activity is visible (
+
+
+ ) to you on
+
+ this page .
@@ -120,10 +127,11 @@ import { DateTime } from "luxon";
import * as R from "ramda";
import { Component, Vue } from "vue-facing-decorator";
import { Router } from "vue-router";
+import { useClipboard } from "@vueuse/core";
import QuickNav from "../components/QuickNav.vue";
import TopMessage from "../components/TopMessage.vue";
-import { NotificationIface } from "../constants/app";
+import { NotificationIface, APP_SERVER } from "../constants/app";
import { Contact } from "../db/tables/contacts";
import {
GenericCredWrapper,
@@ -148,6 +156,7 @@ import {
NOTIFY_ALL_CONFIRMATIONS_ERROR,
NOTIFY_GIVE_SEND_ERROR,
NOTIFY_CLAIMS_SEND_ERROR,
+ NOTIFY_COPIED_TO_CLIPBOARD,
createConfirmationSuccessMessage,
createCombinedSuccessMessage,
} from "@/constants/notifications";
@@ -195,8 +204,8 @@ export default class QuickActionBvcEndView extends Vue {
get claimCountWithHiddenText() {
if (this.claimCountWithHidden === 0) return "";
return this.claimCountWithHidden === 1
- ? "There is 1 other claim with hidden details,"
- : `There are ${this.claimCountWithHidden} other claims with hidden details,`;
+ ? "There is 1 other claim with hidden details."
+ : `There are ${this.claimCountWithHidden} other claims with hidden details.`;
}
get claimCountByUserText() {
@@ -295,6 +304,25 @@ export default class QuickActionBvcEndView extends Vue {
(this.$router as Router).push(route);
}
+ copyContactsLinkToClipboard() {
+ const deepLinkUrl = `${APP_SERVER}/deep-link/did/${this.activeDid}`;
+ useClipboard()
+ .copy(deepLinkUrl)
+ .then(() => {
+ this.notify.success(
+ NOTIFY_COPIED_TO_CLIPBOARD.message("Your info link"),
+ TIMEOUTS.SHORT,
+ );
+ })
+ .catch((error) => {
+ logger.error("Failed to copy to clipboard:", error);
+ this.notify.error(
+ "Failed to copy link to clipboard. Please try again.",
+ TIMEOUTS.SHORT,
+ );
+ });
+ }
+
async record() {
try {
if (this.claimsToConfirmSelected.length > 0) {