|
@ -454,21 +454,25 @@ export default class ContactsView extends Vue { |
|
|
decodeEndorserJwt(importedInviteJwt).payload; |
|
|
decodeEndorserJwt(importedInviteJwt).payload; |
|
|
const registration = payload as VerifiableCredential; |
|
|
const registration = payload as VerifiableCredential; |
|
|
(this.$refs.contactNameDialog as ContactNameDialog).open( |
|
|
(this.$refs.contactNameDialog as ContactNameDialog).open( |
|
|
"Contact Name", |
|
|
"Who Invited You?", |
|
|
"", |
|
|
"", |
|
|
(name) => { |
|
|
(name) => { |
|
|
|
|
|
// not doing await on purpose, so that they always see the onboarding |
|
|
this.addContact({ |
|
|
this.addContact({ |
|
|
did: registration.vc.credentialSubject.agent.identifier, |
|
|
did: registration.vc.credentialSubject.agent.identifier, |
|
|
name: name, |
|
|
name: name, |
|
|
registered: true, |
|
|
registered: true, |
|
|
}); |
|
|
}); |
|
|
|
|
|
this.showOnboardingInfo(); |
|
|
}, |
|
|
}, |
|
|
() => { |
|
|
() => { |
|
|
|
|
|
// not doing await on purpose, so that they always see the onboarding |
|
|
this.addContact({ |
|
|
this.addContact({ |
|
|
did: registration.vc.credentialSubject.agent.identifier, |
|
|
did: registration.vc.credentialSubject.agent.identifier, |
|
|
name: "(person who invited you)", |
|
|
name: "(person who invited you)", |
|
|
registered: true, |
|
|
registered: true, |
|
|
}); |
|
|
}); |
|
|
|
|
|
this.showOnboardingInfo(); |
|
|
}, |
|
|
}, |
|
|
); |
|
|
); |
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any |
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any |
|
@ -513,6 +517,21 @@ export default class ContactsView extends Vue { |
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private showOnboardingInfo() { |
|
|
|
|
|
this.$notify( |
|
|
|
|
|
{ |
|
|
|
|
|
group: "modal", |
|
|
|
|
|
type: "confirm", |
|
|
|
|
|
title: "They're Added To Your List", |
|
|
|
|
|
text: "Would you like to go to the main page now?", |
|
|
|
|
|
onYes: async () => { |
|
|
|
|
|
(this.$router as Router).push({ name: "home" }); |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
-1, |
|
|
|
|
|
); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
private filteredContacts() { |
|
|
private filteredContacts() { |
|
|
return this.showGiveNumbers |
|
|
return this.showGiveNumbers |
|
|
? this.contactsSelected.length === 0 |
|
|
? this.contactsSelected.length === 0 |
|
|