Browse Source

Ref name change

pull/158/head
Jose Olarte III 2 weeks ago
parent
commit
12b43bf684
  1. 8
      src/views/ContactGiftingView.vue
  2. 12
      src/views/HomeView.vue

8
src/views/ContactGiftingView.vue

@ -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,

12
src/views/HomeView.vue

@ -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();
}
/**

Loading…
Cancel
Save