suggest new user going to the front page

This commit is contained in:
2024-10-24 20:04:08 -06:00
parent 45214eabc5
commit 00b191c4fd
4 changed files with 42 additions and 8 deletions

View File

@@ -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