From 9386804216f39d3159e40af2f87ff509b517f159 Mon Sep 17 00:00:00 2001 From: Armin Schrenk Date: Thu, 30 Jun 2022 13:13:17 +0200 Subject: [PATCH 01/11] redesign auth processing dialog: * adjust to new design * add translation keys --- .../ui/keyloading/hub/AuthFlowController.java | 17 ------ src/main/resources/fxml/hub_auth_flow.fxml | 53 +++++++++++++------ src/main/resources/i18n/strings.properties | 5 ++ 3 files changed, 42 insertions(+), 33 deletions(-) diff --git a/src/main/java/org/cryptomator/ui/keyloading/hub/AuthFlowController.java b/src/main/java/org/cryptomator/ui/keyloading/hub/AuthFlowController.java index 23ecfff91..5765f56e0 100644 --- a/src/main/java/org/cryptomator/ui/keyloading/hub/AuthFlowController.java +++ b/src/main/java/org/cryptomator/ui/keyloading/hub/AuthFlowController.java @@ -38,7 +38,6 @@ public class AuthFlowController implements FxController { private final CompletableFuture result; private final Lazy receiveKeyScene; private final ObjectProperty authUri; - private final StringBinding authHost; private AuthFlowTask task; @Inject @@ -52,7 +51,6 @@ public class AuthFlowController implements FxController { this.result = result; this.receiveKeyScene = receiveKeyScene; this.authUri = new SimpleObjectProperty<>(); - this.authHost = Bindings.createStringBinding(this::getAuthHost, authUri); this.window.addEventHandler(WindowEvent.WINDOW_HIDING, this::windowClosed); } @@ -100,19 +98,4 @@ public class AuthFlowController implements FxController { result.completeExceptionally(exception); } - /* Getter/Setter */ - - public StringBinding authHostProperty() { - return authHost; - } - - public String getAuthHost() { - var uri = authUri.get(); - if (uri == null) { - return ""; - } else { - return uri.getAuthority().toString(); - } - } - } diff --git a/src/main/resources/fxml/hub_auth_flow.fxml b/src/main/resources/fxml/hub_auth_flow.fxml index a6d086ea3..40bb9986a 100644 --- a/src/main/resources/fxml/hub_auth_flow.fxml +++ b/src/main/resources/fxml/hub_auth_flow.fxml @@ -1,37 +1,58 @@ + - - + + + + - + - + + spacing="12" + alignment="TOP_LEFT"> - - - - - - - - - + + + + + + + + + - + + +