diff --git a/src/main/java/org/seagrid/desktop/ui/prestageupload/controller/PrestageUploadController.java b/src/main/java/org/seagrid/desktop/ui/prestageupload/controller/PrestageUploadController.java index 7bf0407..cfaddf0 100644 --- a/src/main/java/org/seagrid/desktop/ui/prestageupload/controller/PrestageUploadController.java +++ b/src/main/java/org/seagrid/desktop/ui/prestageupload/controller/PrestageUploadController.java @@ -59,7 +59,8 @@ public class PrestageUploadController { @FXML public void initialize() { - + chosenFile.setTranslateX(85); + chosenFile.setTranslateY(3); pickFile.setOnAction(event -> { try { fileChooser = new FileChooser(); @@ -69,7 +70,7 @@ public void initialize() { String fileAsString = file.getName(); String remotePath = "/Documents/InputFiles/" + fileAsString; String filePath = file.toString(); - chosenFile.setText("File: " + fileAsString); + chosenFile.setText(fileAsString); uploadFiles.put(remotePath, file); } else { chosenFile.setText(null); @@ -85,11 +86,13 @@ public void initialize() { if (uploadFiles.size() > 0) { Service fileUploadService = getPreFileUploadService(uploadFiles); + fileUploadService.setOnSucceeded(event2 -> { + Alert alert = new Alert(Alert.AlertType.INFORMATION); + alert.setTitle("File Upload Status"); + alert.setContentText("File Upload Completed"); + alert.showAndWait(); + }); fileUploadService.start(); - Alert alert = new Alert(Alert.AlertType.INFORMATION); - alert.setTitle("File Upload Status"); - alert.setContentText("File Upload Completed"); - alert.showAndWait(); } } catch (Exception e) { diff --git a/src/main/resources/views/prestageupload/upload-files.fxml b/src/main/resources/views/prestageupload/upload-files.fxml index 50c5d34..a199aa4 100644 --- a/src/main/resources/views/prestageupload/upload-files.fxml +++ b/src/main/resources/views/prestageupload/upload-files.fxml @@ -3,8 +3,13 @@ - - + + + + + + + @@ -12,11 +17,10 @@ -