Remove 'customTitle' variable

This commit is contained in:
Jose Olarte III
2025-07-31 15:53:37 +08:00
parent 6d28a7d8a3
commit 0582954cfa
6 changed files with 5 additions and 23 deletions

View File

@@ -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() {