diff --git a/voting-station-gui/src/polling_station_dashboard/StatusLog/fxml/status_log.fxml b/voting-station-gui/src/polling_station_dashboard/StatusLog/fxml/status_log.fxml index eb1a5b0..180f299 100644 --- a/voting-station-gui/src/polling_station_dashboard/StatusLog/fxml/status_log.fxml +++ b/voting-station-gui/src/polling_station_dashboard/StatusLog/fxml/status_log.fxml @@ -9,7 +9,7 @@ - +
diff --git a/voting-station-gui/src/polling_station_dashboard/StatusLog/java/StatusLogController.java b/voting-station-gui/src/polling_station_dashboard/StatusLog/java/StatusLogController.java index aeda2d5..05541e8 100644 --- a/voting-station-gui/src/polling_station_dashboard/StatusLog/java/StatusLogController.java +++ b/voting-station-gui/src/polling_station_dashboard/StatusLog/java/StatusLogController.java @@ -1,6 +1,5 @@ package polling_station_dashboard.statusLog.java; -import javafx.fxml.FXML; import javafx.stage.Stage; /** @@ -10,21 +9,8 @@ import javafx.stage.Stage; public class StatusLogController { private Stage primaryStage; - private StatusLogUpdate statusLogUpdater; - - public void SetStatusLogUpdater(StatusLogUpdate updater){ - statusLogUpdater = updater; - } public void SetStage(Stage stage){ primaryStage = stage; } - - @FXML - private void CloseStatusLog(){ - // UpdateStatusLog is called from open status log object which means that - // the current UpdateStatusLog will close it - statusLogUpdater.UpdateStatusLog(); - } - } diff --git a/voting-station-gui/src/polling_station_dashboard/StatusLog/java/StatusLogLoader.java b/voting-station-gui/src/polling_station_dashboard/StatusLog/java/StatusLogLoader.java index 1824bfe..9c725ca 100644 --- a/voting-station-gui/src/polling_station_dashboard/StatusLog/java/StatusLogLoader.java +++ b/voting-station-gui/src/polling_station_dashboard/StatusLog/java/StatusLogLoader.java @@ -16,12 +16,10 @@ public class StatusLogLoader { private Stage currentStage; private FXMLLoader fxmlLoader; - private StatusLogUpdate statusLogUpdater; - public StatusLogLoader (Stage primaryStage, StatusLogUpdate updater) throws IOException + public StatusLogLoader (Stage primaryStage) throws IOException { currentStage = primaryStage; - statusLogUpdater = updater; fxmlLoader = new FXMLLoader(getClass().getResource(STATUS_LOG_FXML_PATH)); } @@ -29,7 +27,6 @@ public class StatusLogLoader { GridPane StatusLog = fxmlLoader.load(); StatusLogController controller = fxmlLoader.getController(); controller.SetStage(currentStage); - controller.SetStatusLogUpdater(statusLogUpdater); return StatusLog; } diff --git a/voting-station-gui/src/polling_station_dashboard/fxml/polling_station_dashboard.fxml b/voting-station-gui/src/polling_station_dashboard/fxml/polling_station_dashboard.fxml index b3af86e..b870502 100644 --- a/voting-station-gui/src/polling_station_dashboard/fxml/polling_station_dashboard.fxml +++ b/voting-station-gui/src/polling_station_dashboard/fxml/polling_station_dashboard.fxml @@ -25,7 +25,7 @@ -