Ref name change

This commit is contained in:
Jose Olarte III
2025-07-31 14:53:32 +08:00
parent 1180ebd4ca
commit 12b43bf684
2 changed files with 10 additions and 10 deletions

View File

@@ -66,7 +66,7 @@
</ul>
<GiftedDialog
ref="customDialog"
ref="giftedDialog"
:from-project-id="fromProjectId"
:to-project-id="toProjectId"
:show-projects="showProjects"
@@ -221,7 +221,7 @@ export default class ContactGiftingView extends Vue {
}
}
(this.$refs.customDialog as GiftedDialog).open(
(this.$refs.giftedDialog as GiftedDialog).open(
giver,
recipient,
undefined,
@@ -229,7 +229,7 @@ export default class ContactGiftingView extends Vue {
this.prompt,
);
// Immediately select "Unnamed" and move to Step 2
(this.$refs.customDialog as GiftedDialog).selectGiver();
(this.$refs.giftedDialog as GiftedDialog).selectGiver();
} else {
// Regular case: contact is a GiverReceiverInputInfo
let giver: GiverReceiverInputInfo;
@@ -272,7 +272,7 @@ export default class ContactGiftingView extends Vue {
}
}
(this.$refs.customDialog as GiftedDialog).open(
(this.$refs.giftedDialog as GiftedDialog).open(
giver,
recipient,
undefined,

View File

@@ -151,7 +151,7 @@ Raymer * @version 1.0.0 */
</div>
</div>
<GiftedDialog ref="customDialog" :show-projects="showProjectsDialog" />
<GiftedDialog ref="giftedDialog" :show-projects="showProjectsDialog" />
<GiftedPrompts ref="giftedPrompts" />
<FeedFilters ref="feedFilters" />
@@ -1591,7 +1591,7 @@ export default class HomeView extends Vue {
* openGiftedPrompts() -> openDialog()
*
* @requires
* - this.$refs.customDialog
* - this.$refs.giftedDialog
* - this.activeDid
*
* @param giver Optional contact info for giver
@@ -1600,7 +1600,7 @@ export default class HomeView extends Vue {
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(
(this.$refs.giftedDialog as GiftedDialog).open(
undefined,
{
did: this.activeDid,
@@ -1611,9 +1611,9 @@ export default class HomeView extends Vue {
description,
);
// Immediately select "Unnamed" and move to Step 2
(this.$refs.customDialog as GiftedDialog).selectGiver();
(this.$refs.giftedDialog as GiftedDialog).selectGiver();
} else {
(this.$refs.customDialog as GiftedDialog).open(
(this.$refs.giftedDialog as GiftedDialog).open(
giver,
{
did: this.activeDid,
@@ -1837,7 +1837,7 @@ export default class HomeView extends Vue {
openProjectDialog() {
this.showProjectsDialog = true;
(this.$refs.customDialog as GiftedDialog).open();
(this.$refs.giftedDialog as GiftedDialog).open();
}
/**