forked from trent_larson/crowd-funder-for-time-pwa
after copying personal data, add a message to copy contacts for them
This commit is contained in:
@@ -30,10 +30,12 @@
|
||||
Copy to Clipboard
|
||||
</button>
|
||||
</div>
|
||||
<div class="mt-8">Click to copy your info, then send it to them.</div>
|
||||
<div>
|
||||
They will paste it in the input box on the Contacts
|
||||
<fa icon="users" /> screen.
|
||||
<div class="ml-12">
|
||||
<div class="mt-8">Click to copy your info, then send it to them.</div>
|
||||
<div>
|
||||
They will paste it in the input box on the Contacts
|
||||
<fa icon="users" /> screen.
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</template>
|
||||
@@ -69,6 +71,8 @@ export default class ShareMyContactInfoView extends Vue {
|
||||
const accounts = await accountsDB.accounts.toArray();
|
||||
const account = R.find((acc) => acc.did === activeDid, accounts);
|
||||
|
||||
const numContacts = await db.contacts.count();
|
||||
|
||||
if (account) {
|
||||
const message = await generateEndorserJwtForAccount(
|
||||
account,
|
||||
@@ -88,6 +92,19 @@ export default class ShareMyContactInfoView extends Vue {
|
||||
},
|
||||
5000,
|
||||
);
|
||||
if (numContacts > 0) {
|
||||
setTimeout(() => {
|
||||
this.$notify(
|
||||
{
|
||||
group: "alert",
|
||||
type: "success",
|
||||
title: "Share Other Contacts",
|
||||
text: "You may want to share some of your contacts with them. Select them below to copy and send.",
|
||||
},
|
||||
10000,
|
||||
);
|
||||
}, 3000);
|
||||
}
|
||||
});
|
||||
(this.$router as Router).push({ name: "contacts" });
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user