Skip to content

Commit

Permalink
Updated CharityPageController
Browse files Browse the repository at this point in the history
Readded switchToFrontPage method so one can land on the charity page.
  • Loading branch information
roaraf committed Apr 16, 2026
1 parent ab8e937 commit 94342f0
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ public void switchToDonationPage(ActionEvent event) {
LoaderScene.LoadScene("donationPage", event, charity, null);
}

@FXML
public void switchToFrontPage(ActionEvent event) {
System.out.println("Click");
LoaderScene.LoadScene("FrontPage", event, charity, null);
}

/**
* This method is used to search for charities based on the input in the search field.
*
Expand Down

0 comments on commit 94342f0

Please sign in to comment.