Skip to content

Commit

Permalink
Merge pull request #1806 from thebiggive/DON-998-view-mandate-link
Browse files Browse the repository at this point in the history
DON-998: view mandate link
  • Loading branch information
dorota-joanna authored Dec 19, 2024
2 parents 7d7c2cd + 501d865 commit 993f40a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 8 additions & 0 deletions src/app/my-regular-giving/my-regular-giving.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ <h3><a href="{{'/campaign/' + mandate.campaignId}}">{{ mandate.charityName }}</a
</ul>
</div>

<biggive-button
space-above="5"
colour-scheme="primary"
label="View Mandate"
full-width="true"
size="medium"
url="/my-account/regular-giving/{{mandate.id}}"
/>
</biggive-container-card>
}
</biggive-grid>
Expand Down
6 changes: 1 addition & 5 deletions src/app/regular-giving/regular-giving.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,7 @@ export class RegularGivingComponent implements OnInit {
giftAid: false
}).subscribe({
next: async (mandate: Mandate) => {
const prefix = "Regular giving mandate created: (todo - make 'thanks' page with polling for updates and/or make " +
"the mandate come back activated so it will show on my regular giving page) ";

alert(prefix + JSON.stringify(mandate));
await this.router.navigateByUrl(myRegularGivingPath);
await this.router.navigateByUrl(`${myRegularGivingPath}/${mandate.id}`);
},
error: (error: Error) => {
console.error(error);
Expand Down

0 comments on commit 993f40a

Please sign in to comment.