|
|
@ -1597,7 +1597,7 @@ export default class HomeView extends Vue { |
|
|
|
* @param giver Optional contact info for giver |
|
|
|
* @param description Optional gift description |
|
|
|
*/ |
|
|
|
openDialog(giver?: GiverReceiverInputInfo | "Unnamed", description?: string) { |
|
|
|
openDialog(giver?: GiverReceiverInputInfo | "Unnamed", prompt?: string) { |
|
|
|
if (giver === "Unnamed") { |
|
|
|
// Special case: Pass undefined to trigger Step 1, but with "Unnamed" pre-selected |
|
|
|
(this.$refs.giftedDialog as GiftedDialog).open( |
|
|
@ -1607,8 +1607,7 @@ export default class HomeView extends Vue { |
|
|
|
name: "You", |
|
|
|
} as GiverReceiverInputInfo, |
|
|
|
undefined, |
|
|
|
"Given by Unnamed", |
|
|
|
description, |
|
|
|
prompt, |
|
|
|
); |
|
|
|
// Immediately select "Unnamed" and move to Step 2 |
|
|
|
(this.$refs.giftedDialog as GiftedDialog).selectGiver(); |
|
|
@ -1620,8 +1619,7 @@ export default class HomeView extends Vue { |
|
|
|
name: "You", |
|
|
|
} as GiverReceiverInputInfo, |
|
|
|
undefined, |
|
|
|
"Given by " + (giver?.name || "someone not named"), |
|
|
|
description, |
|
|
|
prompt, |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
@ -1829,10 +1827,10 @@ export default class HomeView extends Vue { |
|
|
|
|
|
|
|
openPersonDialog( |
|
|
|
giver?: GiverReceiverInputInfo | "Unnamed", |
|
|
|
description?: string, |
|
|
|
prompt?: string, |
|
|
|
) { |
|
|
|
this.showProjectsDialog = false; |
|
|
|
this.openDialog(giver, description); |
|
|
|
this.openDialog(giver, prompt); |
|
|
|
} |
|
|
|
|
|
|
|
openProjectDialog() { |
|
|
|