Skip to content

Commit

Permalink
comments update
Browse files Browse the repository at this point in the history
  • Loading branch information
LaylaAbdalla committed Dec 20, 2024
1 parent 59d4cf5 commit 0beeace
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
17 changes: 8 additions & 9 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public void editMinistry() {
return;
}

// Input is valid, navigate to the next page
// If input is valid, navigate to the next page
try {
FXMLLoader loader = new FXMLLoader(getClass().getResource("editMinistry.fxml"));
Parent root = loader.load();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ void SubmitRequest(MouseEvent event) {
outputLabel.setText("No option selected.");
}

// Check if the date is null or less than 2024
// Check if the date is null or it's year is greater than 2024
if (selectedDate == null || selectedDate.getYear() >= 2024) {
// Show an alert if the date is invalid
showAlert("Alert", "Can't submit request, please select a valid date", Alert.AlertType.ERROR);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ private void onRenameMinistry(ActionEvent event) {
showAlert(response);
newMinistryNameField.clear();

// Close current stage (editMinistryController window)
Stage currentStage = (Stage) editMinistryButton.getScene().getWindow();

// Load the first controller (main window)
Expand Down

0 comments on commit 0beeace

Please sign in to comment.