@ -151,7 +151,6 @@ import { getContactJwtFromJwtUrl } from "../libs/crypto";
import {
import {
CONTACT_CSV_HEADER ,
CONTACT_CSV_HEADER ,
CONTACT_IMPORT_CONFIRM_URL_PATH_TIME_SAFARI ,
CONTACT_IMPORT_CONFIRM_URL_PATH_TIME_SAFARI ,
generateEndorserJwtUrlForAccount ,
register ,
register ,
setVisibilityUtil ,
setVisibilityUtil ,
} from "../libs/endorserServer" ;
} from "../libs/endorserServer" ;
@ -162,7 +161,6 @@ import { logger } from "../utils/logger";
import { QRScannerFactory } from "@/services/QRScanner/QRScannerFactory" ;
import { QRScannerFactory } from "@/services/QRScanner/QRScannerFactory" ;
import { CameraState } from "@/services/QRScanner/types" ;
import { CameraState } from "@/services/QRScanner/types" ;
import { PlatformServiceMixin } from "@/utils/PlatformServiceMixin" ;
import { PlatformServiceMixin } from "@/utils/PlatformServiceMixin" ;
import { Account } from "@/db/tables/accounts" ;
import { createNotifyHelpers } from "@/utils/notify" ;
import { createNotifyHelpers } from "@/utils/notify" ;
import {
import {
NOTIFY_QR_INITIALIZATION_ERROR ,
NOTIFY_QR_INITIALIZATION_ERROR ,
@ -547,8 +545,8 @@ export default class ContactQRScanShow extends Vue {
name : contact . name ,
name : contact . name ,
} ) ;
} ) ;
this . notify . toast (
this . notify . toast (
"Submitted" ,
NOTIFY_QR_REGISTRATION_SUBMITTED . message ,
NOTIFY_QR_REGISTRATION_SUBMITTED . message ,
undefined ,
QR_TIMEOUT_SHORT ,
QR_TIMEOUT_SHORT ,
) ;
) ;
@ -612,20 +610,15 @@ export default class ContactQRScanShow extends Vue {
}
}
async onCopyUrlToClipboard ( ) {
async onCopyUrlToClipboard ( ) {
const account = ( await libsUtil . retrieveFullyDecryptedAccount (
/ / C o p y t h e C S V f o r m a t Q R c o d e v a l u e i n s t e a d o f g e n e r a t i n g a d e e p l i n k
this . activeDid ,
) ) as Account ;
const jwtUrl = await generateEndorserJwtUrlForAccount (
account ,
this . isRegistered ,
this . givenName ,
this . profileImageUrl ,
true ,
) ;
useClipboard ( )
useClipboard ( )
. copy ( jwtUrl )
. copy ( this . qrValue )
. then ( ( ) => {
. then ( ( ) => {
this . notify . toast ( NOTIFY_QR_URL_COPIED . message , undefined , QR_TIMEOUT_MEDIUM ) ;
this . notify . toast (
"Copied" ,
NOTIFY_QR_URL_COPIED . message ,
QR_TIMEOUT_MEDIUM ,
) ;
} ) ;
} ) ;
}
}