redesign auth processing dialog:

* adjust to new design
* add translation keys
This commit is contained in:
Armin Schrenk
2022-06-30 13:13:17 +02:00
parent 63cd3a02de
commit 9386804216
3 changed files with 42 additions and 33 deletions

View File

@@ -38,7 +38,6 @@ public class AuthFlowController implements FxController {
private final CompletableFuture<JWEObject> result;
private final Lazy<Scene> receiveKeyScene;
private final ObjectProperty<URI> 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();
}
}
}