diff --git a/src/components/InviteDialog.vue b/src/components/InviteDialog.vue index a9a4eba..b2bca57 100644 --- a/src/components/InviteDialog.vue +++ b/src/components/InviteDialog.vue @@ -58,7 +58,7 @@ export default class InviteDialog extends Vue { inviteIdentifier = ""; text = ""; visible = false; - expiresAt = new Date(Date.now() + 1000 * 60 * 60 * 24 * 30 * 3) + expiresAt = new Date(Date.now() + 1000 * 60 * 60 * 24 * 7) .toISOString() .substring(0, 10); diff --git a/src/views/ContactsView.vue b/src/views/ContactsView.vue index b3f63b4..5fc815d 100644 --- a/src/views/ContactsView.vue +++ b/src/views/ContactsView.vue @@ -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 diff --git a/src/views/InviteOneView.vue b/src/views/InviteOneView.vue index b123c97..55faa6c 100644 --- a/src/views/InviteOneView.vue +++ b/src/views/InviteOneView.vue @@ -46,7 +46,10 @@ >