Ref name change
This commit is contained in:
@@ -66,7 +66,7 @@
|
|||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<GiftedDialog
|
<GiftedDialog
|
||||||
ref="customDialog"
|
ref="giftedDialog"
|
||||||
:from-project-id="fromProjectId"
|
:from-project-id="fromProjectId"
|
||||||
:to-project-id="toProjectId"
|
:to-project-id="toProjectId"
|
||||||
:show-projects="showProjects"
|
: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,
|
giver,
|
||||||
recipient,
|
recipient,
|
||||||
undefined,
|
undefined,
|
||||||
@@ -229,7 +229,7 @@ export default class ContactGiftingView extends Vue {
|
|||||||
this.prompt,
|
this.prompt,
|
||||||
);
|
);
|
||||||
// Immediately select "Unnamed" and move to Step 2
|
// Immediately select "Unnamed" and move to Step 2
|
||||||
(this.$refs.customDialog as GiftedDialog).selectGiver();
|
(this.$refs.giftedDialog as GiftedDialog).selectGiver();
|
||||||
} else {
|
} else {
|
||||||
// Regular case: contact is a GiverReceiverInputInfo
|
// Regular case: contact is a GiverReceiverInputInfo
|
||||||
let giver: 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,
|
giver,
|
||||||
recipient,
|
recipient,
|
||||||
undefined,
|
undefined,
|
||||||
|
|||||||
@@ -151,7 +151,7 @@ Raymer * @version 1.0.0 */
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<GiftedDialog ref="customDialog" :show-projects="showProjectsDialog" />
|
<GiftedDialog ref="giftedDialog" :show-projects="showProjectsDialog" />
|
||||||
<GiftedPrompts ref="giftedPrompts" />
|
<GiftedPrompts ref="giftedPrompts" />
|
||||||
<FeedFilters ref="feedFilters" />
|
<FeedFilters ref="feedFilters" />
|
||||||
|
|
||||||
@@ -1591,7 +1591,7 @@ export default class HomeView extends Vue {
|
|||||||
* openGiftedPrompts() -> openDialog()
|
* openGiftedPrompts() -> openDialog()
|
||||||
*
|
*
|
||||||
* @requires
|
* @requires
|
||||||
* - this.$refs.customDialog
|
* - this.$refs.giftedDialog
|
||||||
* - this.activeDid
|
* - this.activeDid
|
||||||
*
|
*
|
||||||
* @param giver Optional contact info for giver
|
* @param giver Optional contact info for giver
|
||||||
@@ -1600,7 +1600,7 @@ export default class HomeView extends Vue {
|
|||||||
openDialog(giver?: GiverReceiverInputInfo | "Unnamed", description?: string) {
|
openDialog(giver?: GiverReceiverInputInfo | "Unnamed", description?: string) {
|
||||||
if (giver === "Unnamed") {
|
if (giver === "Unnamed") {
|
||||||
// Special case: Pass undefined to trigger Step 1, but with "Unnamed" pre-selected
|
// 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,
|
undefined,
|
||||||
{
|
{
|
||||||
did: this.activeDid,
|
did: this.activeDid,
|
||||||
@@ -1611,9 +1611,9 @@ export default class HomeView extends Vue {
|
|||||||
description,
|
description,
|
||||||
);
|
);
|
||||||
// Immediately select "Unnamed" and move to Step 2
|
// Immediately select "Unnamed" and move to Step 2
|
||||||
(this.$refs.customDialog as GiftedDialog).selectGiver();
|
(this.$refs.giftedDialog as GiftedDialog).selectGiver();
|
||||||
} else {
|
} else {
|
||||||
(this.$refs.customDialog as GiftedDialog).open(
|
(this.$refs.giftedDialog as GiftedDialog).open(
|
||||||
giver,
|
giver,
|
||||||
{
|
{
|
||||||
did: this.activeDid,
|
did: this.activeDid,
|
||||||
@@ -1837,7 +1837,7 @@ export default class HomeView extends Vue {
|
|||||||
|
|
||||||
openProjectDialog() {
|
openProjectDialog() {
|
||||||
this.showProjectsDialog = true;
|
this.showProjectsDialog = true;
|
||||||
(this.$refs.customDialog as GiftedDialog).open();
|
(this.$refs.giftedDialog as GiftedDialog).open();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user