@ -505,7 +505,7 @@ import { AxiosError } from "axios";
import * as yaml from "js-yaml" ;
import * as R from "ramda" ;
import { Component , Vue } from "vue-facing-decorator" ;
import { Router } from "vue-router" ;
import { Router , RouteLocationNormalizedLoaded } from "vue-router" ;
import { useClipboard } from "@vueuse/core" ;
import GiftedDialog from "../components/GiftedDialog.vue" ;
@ -518,22 +518,20 @@ import {
} from "../db/index" ;
import { Contact } from "../db/tables/contacts" ;
import * as serverUtil from "../libs/endorserServer" ;
import {
GenericCredWrapper ,
import {
GenericCredWrapper ,
OfferVerifiableCredential ,
} from "../libs/endorserServer" ;
ProviderInfo
} from '../interfaces' ;
import * as libsUtil from "../libs/util" ;
interface ProviderInfo {
identifier : string ; / / c o u l d b e a D I D o r a h a n d l e I d
linkConfirmed : boolean ;
}
@ Component ( {
components : { GiftedDialog , QuickNav } ,
} )
export default class ClaimView extends Vue {
$notify ! : ( notification : NotificationIface , timeout ? : number ) => void ;
$route ! : RouteLocationNormalizedLoaded ;
$router ! : Router ;
activeDid = "" ;
allMyDids : Array < string > = [ ] ;
@ -595,41 +593,30 @@ export default class ClaimView extends Vue {
try {
this . allMyDids = await libsUtil . retrieveAccountDids ( ) ;
} catch ( error ) {
/ / c o n t i n u e b e c a u s e w e w a n t t o s e e c l a i m s , e v e n a n o n y m o u s l y
logConsoleAndDb (
"Error retrieving all account DIDs on home page:" + error ,
true ,
) ;
this . $notify (
{
group : "alert" ,
type : "danger" ,
title : "Error Loading Profile" ,
text : "See the Help page for problems with your personal data." ,
} ,
5000 ,
) ;
this . $notify ( {
group : "alert" ,
type : "danger" ,
title : "Error Loading Profile" ,
text : "See the Help page for problems with your personal data." ,
} , 5000 ) ;
}
const pathParam = window . location . pathname . substring ( "/claim/" . length ) ;
let claimId ;
if ( pathParam ) {
claimId = decodeURIComponent ( pathParam ) ;
const claimId = this . $route . params . id as string ;
if ( claimId ) {
await this . loadClaim ( claimId , this . activeDid ) ;
} else {
this . $notify (
{
group : "alert" ,
type : "danger" ,
title : "Error" ,
text : "No claim ID was provided." ,
} ,
5000 ,
) ;
this . $notify ( {
group : "alert" ,
type : "danger" ,
title : "Error" ,
text : "No claim ID was provided." ,
} , 5000 ) ;
}
/ / W h e n C h r o m e c o m p a t i b i l i t y i s f i x e d h t t p s : / / d e v e l o p e r . m o z i l l a . o r g / e n - U S / d o c s / W e b / A P I / W e b _ S h a r e _ A P I # a p i . n a v i g a t o r . c a n s h a r e
/ / t h e n u s e t h i s t r u e r c h e c k : n a v i g a t o r . c a n S h a r e & & n a v i g a t o r . c a n S h a r e ( )
this . canShare = ! ! navigator . share ;
}