diff --git a/project.task.yaml b/project.task.yaml
index a102743..034c3e9 100644
--- a/project.task.yaml
+++ b/project.task.yaml
@@ -2,7 +2,6 @@
tasks:
- Jason reported that turning notifications on from the help screen did not stay. iPhone
-- check that 'show more contacts' from the contact-give-list on the project screen includes project ID
- supply the projectId to the OfferDialog just like we do with the offerId
- the confirm button on each give on the ProjectViewView page doesn't have all the context of the ClaimView page, so it can show sometimes inappropriately; consider consolidation
diff --git a/src/views/ContactGiftingView.vue b/src/views/ContactGiftingView.vue
index 475f56e..c018d58 100644
--- a/src/views/ContactGiftingView.vue
+++ b/src/views/ContactGiftingView.vue
@@ -20,12 +20,13 @@
-
+
- Anonymous
+ Anonymous/Unnamed
-
+
+ />
{{ contact.name || "(no name)" }}
@@ -68,7 +69,7 @@
@@ -104,12 +105,40 @@ export default class ContactGiftingView extends Vue {
apiServer = "";
accounts: typeof AccountsSchema;
numAccounts = 0;
+ projectId = localStorage.getItem("projectId") || "";
async beforeCreate() {
accountsDB.open();
this.numAccounts = await accountsDB.accounts.count();
}
+ async created() {
+ try {
+ await db.open();
+ const settings = (await db.settings.get(MASTER_SETTINGS_KEY)) as Settings;
+ this.apiServer = settings?.apiServer || "";
+ this.activeDid = settings?.activeDid || "";
+ this.allContacts = await db.contacts.toArray();
+
+ localStorage.removeItem("projectId");
+
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
+ } catch (err: any) {
+ console.log("Error retrieving settings & contacts:", err);
+ this.$notify(
+ {
+ group: "alert",
+ type: "danger",
+ title: "Error",
+ text:
+ err.message ||
+ "There was an error retrieving your settings and/or contacts.",
+ },
+ -1,
+ );
+ }
+ }
+
public async getIdentity(activeDid: string) {
await accountsDB.open();
const account = (await accountsDB.accounts
@@ -135,30 +164,6 @@ export default class ContactGiftingView extends Vue {
return headers;
}
- async created() {
- try {
- await db.open();
- const settings = (await db.settings.get(MASTER_SETTINGS_KEY)) as Settings;
- this.apiServer = settings?.apiServer || "";
- this.activeDid = settings?.activeDid || "";
- this.allContacts = await db.contacts.toArray();
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
- } catch (err: any) {
- console.log("Error retrieving settings & contacts:", err);
- this.$notify(
- {
- group: "alert",
- type: "danger",
- title: "Error",
- text:
- err.message ||
- "There was an error retrieving your settings and/or contacts.",
- },
- -1,
- );
- }
- }
-
openDialog(giver: GiverInputInfo) {
(this.$refs.customDialog as GiftedDialog).open(giver);
}
diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue
index a3aa689..d832177 100644
--- a/src/views/HomeView.vue
+++ b/src/views/HomeView.vue
@@ -119,7 +119,7 @@
@@ -127,7 +127,7 @@
:entityId="contact.did"
:iconSize="64"
class="mx-auto border border-slate-300 rounded-md mb-1"
- >
+ />
diff --git a/src/views/ProjectViewView.vue b/src/views/ProjectViewView.vue
index db544e4..8b5501a 100644
--- a/src/views/ProjectViewView.vue
+++ b/src/views/ProjectViewView.vue
@@ -154,7 +154,7 @@
@@ -162,7 +162,7 @@
:entityId="contact.did"
:iconSize="64"
class="mx-auto border border-slate-300 rounded-md mb-1"
- >
+ />
@@ -172,13 +172,13 @@
-
Show More Contacts…
-
+
@@ -709,6 +709,14 @@ export default class ProjectViewView extends Vue {
(this.$refs.customOfferDialog as OfferDialog).open();
}
+ onClickAllContactsGifting() {
+ localStorage.setItem("projectId", this.projectId);
+ const route = {
+ name: "contact-gives",
+ };
+ this.$router.push(route);
+ }
+
onClickLoadClaim(jwtId: string) {
const route = {
path: "/claim/" + encodeURIComponent(jwtId),