forked from jsnbuchanan/crowd-funder-for-time-pwa
suggest new user going to the front page
This commit is contained in:
@@ -454,21 +454,25 @@ export default class ContactsView extends Vue {
|
||||
decodeEndorserJwt(importedInviteJwt).payload;
|
||||
const registration = payload as VerifiableCredential;
|
||||
(this.$refs.contactNameDialog as ContactNameDialog).open(
|
||||
"Contact Name",
|
||||
"Who Invited You?",
|
||||
"",
|
||||
(name) => {
|
||||
// not doing await on purpose, so that they always see the onboarding
|
||||
this.addContact({
|
||||
did: registration.vc.credentialSubject.agent.identifier,
|
||||
name: name,
|
||||
registered: true,
|
||||
});
|
||||
this.showOnboardingInfo();
|
||||
},
|
||||
() => {
|
||||
// not doing await on purpose, so that they always see the onboarding
|
||||
this.addContact({
|
||||
did: registration.vc.credentialSubject.agent.identifier,
|
||||
name: "(person who invited you)",
|
||||
registered: true,
|
||||
});
|
||||
this.showOnboardingInfo();
|
||||
},
|
||||
);
|
||||
// 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() {
|
||||
return this.showGiveNumbers
|
||||
? this.contactsSelected.length === 0
|
||||
|
||||
Reference in New Issue
Block a user