-
- Latest Activity
-
-
-
+
+
Latest Activity
+
+
= new Map();
+ showProjectsDialog = false;
/**
* Initializes the component on mount
@@ -1604,17 +1599,33 @@ export default class HomeView extends Vue {
* @param giver Optional contact info for giver
* @param description Optional gift description
*/
- openDialog(giver?: GiverReceiverInputInfo, description?: string) {
- (this.$refs.customDialog as GiftedDialog).open(
- giver,
- {
- did: this.activeDid,
- name: "you",
- } as GiverReceiverInputInfo,
- undefined,
- "Given by " + (giver?.name || "someone not named"),
- description,
- );
+ openDialog(giver?: GiverReceiverInputInfo | "Unnamed", description?: string) {
+ if (giver === "Unnamed") {
+ // Special case: Pass undefined to trigger Step 1, but with "Unnamed" pre-selected
+ (this.$refs.customDialog as GiftedDialog).open(
+ undefined,
+ {
+ did: this.activeDid,
+ name: "You",
+ } as GiverReceiverInputInfo,
+ undefined,
+ "Given by Unnamed",
+ description,
+ );
+ // Immediately select "Unnamed" and move to Step 2
+ (this.$refs.customDialog as GiftedDialog).selectGiver();
+ } else {
+ (this.$refs.customDialog as GiftedDialog).open(
+ giver,
+ {
+ did: this.activeDid,
+ name: "You",
+ } as GiverReceiverInputInfo,
+ undefined,
+ "Given by " + (giver?.name || "someone not named"),
+ description,
+ );
+ }
}
/**
@@ -1848,5 +1859,18 @@ export default class HomeView extends Vue {
this.$router.push({ name: "contact-qr" });
}
}
+
+ openDialogPerson(
+ giver?: GiverReceiverInputInfo | "Unnamed",
+ description?: string,
+ ) {
+ this.showProjectsDialog = false;
+ this.openDialog(giver, description);
+ }
+
+ openProjectDialog() {
+ this.showProjectsDialog = true;
+ (this.$refs.customDialog as any).open();
+ }
}
diff --git a/src/views/ProjectViewView.vue b/src/views/ProjectViewView.vue
index 1d8d40cc..03a5a482 100644
--- a/src/views/ProjectViewView.vue
+++ b/src/views/ProjectViewView.vue
@@ -214,63 +214,11 @@