Browse Source

some fixes to the gifted-dialog logic

pull/143/head
Trent Larson 14 hours ago
parent
commit
25512d3db1
  1. 3
      src/components/GiftedDialog.vue
  2. 2
      src/views/ContactGiftingView.vue
  3. 1
      src/views/ProjectViewView.vue

3
src/components/GiftedDialog.vue

@ -1025,7 +1025,6 @@ export default class GiftedDialog extends Vue {
selectProject(project: PlanData) { selectProject(project: PlanData) {
this.giver = { this.giver = {
did: project.handleId,
name: project.name, name: project.name,
image: project.image, image: project.image,
handleId: project.handleId, handleId: project.handleId,
@ -1054,7 +1053,7 @@ export default class GiftedDialog extends Vue {
selectRecipientProject(project: PlanData) { selectRecipientProject(project: PlanData) {
this.receiver = { this.receiver = {
did: project.handleId, // no did, because it's a project
name: project.name, name: project.name,
image: project.image, image: project.image,
handleId: project.handleId, handleId: project.handleId,

2
src/views/ContactGiftingView.vue

@ -226,7 +226,7 @@ export default class ContactGiftingView extends Vue {
// Preserve the existing giver from the context // Preserve the existing giver from the context
if (this.giverEntityType === "project") { if (this.giverEntityType === "project") {
giver = { giver = {
did: this.giverProjectHandleId, // no did, because it's a project
name: this.giverProjectName, name: this.giverProjectName,
image: this.giverProjectImage, image: this.giverProjectImage,
handleId: this.giverProjectHandleId, handleId: this.giverProjectHandleId,

1
src/views/ProjectViewView.vue

@ -1269,7 +1269,6 @@ export default class ProjectViewView extends Vue {
`${this.name} gave to you`, `${this.name} gave to you`,
undefined, undefined,
undefined, undefined,
true,
); );
} }

Loading…
Cancel
Save