|
|
@ -6,7 +6,29 @@ |
|
|
|
Time Safari |
|
|
|
</h1> |
|
|
|
|
|
|
|
<!-- show the actions for recognizing a give --> |
|
|
|
<div class="mb-8"> |
|
|
|
<div v-if="!activeDid"> |
|
|
|
To record others' giving, |
|
|
|
<router-link :to="{ name: 'start' }" class="text-blue-500"> |
|
|
|
create your identifier.</router-link |
|
|
|
> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div v-else-if="!isRegistered"> |
|
|
|
To record others' giving, someone must register your account, so show |
|
|
|
them |
|
|
|
<router-link :to="{ name: 'contact-qr' }" class="text-blue-500"> |
|
|
|
your identity info</router-link |
|
|
|
> |
|
|
|
and then |
|
|
|
<router-link :to="{ name: 'account' }" class="text-blue-500"> |
|
|
|
check your limits.</router-link |
|
|
|
> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div v-else> |
|
|
|
<!-- activeDid && isRegistered --> |
|
|
|
<h2 class="text-xl font-bold">Record a Gift</h2> |
|
|
|
|
|
|
|
<ul class="grid grid-cols-4 gap-x-3 gap-y-5 text-center mb-5"> |
|
|
@ -57,6 +79,7 @@ |
|
|
|
(No contacts to show.) |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<GiftedDialog ref="customDialog" message="Received from"> </GiftedDialog> |
|
|
|
|
|
|
@ -129,6 +152,7 @@ export default class HomeView extends Vue { |
|
|
|
feedPreviousOldestId?: string; |
|
|
|
feedLastViewedId?: string; |
|
|
|
isHiddenSpinner = true; |
|
|
|
isRegistered = false; |
|
|
|
numAccounts = 0; |
|
|
|
|
|
|
|
async beforeCreate() { |
|
|
@ -173,6 +197,7 @@ export default class HomeView extends Vue { |
|
|
|
this.activeDid = settings?.activeDid || ""; |
|
|
|
this.allContacts = await db.contacts.toArray(); |
|
|
|
this.feedLastViewedId = settings?.lastViewedClaimId; |
|
|
|
this.isRegistered = !!settings?.isRegistered; |
|
|
|
this.updateAllFeed(); |
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any |
|
|
|
} catch (err: any) { |
|
|
|