mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-22 23:50:32 +00:00
Add ability to accept host keys
This commit is contained in:
parent
cdf205e705
commit
fe7586cbec
1 changed files with 22 additions and 11 deletions
|
@ -186,23 +186,34 @@ public class ErrorHandlerComp extends SimpleComp {
|
|||
protected Region createSimple() {
|
||||
var top = createTop();
|
||||
var content = new VBox(top, new Separator(Orientation.HORIZONTAL));
|
||||
if (event.isReportable()) {
|
||||
var header = new Label(AppI18n.get("possibleActions"));
|
||||
AppFont.header(header);
|
||||
var actionBox = new VBox(header);
|
||||
actionBox.getStyleClass().add("actions");
|
||||
actionBox.setFillWidth(true);
|
||||
var header = new Label(AppI18n.get("possibleActions"));
|
||||
AppFont.header(header);
|
||||
var actionBox = new VBox(header);
|
||||
actionBox.getStyleClass().add("actions");
|
||||
actionBox.setFillWidth(true);
|
||||
|
||||
for (var action :
|
||||
List.of(ErrorAction.sendDiagnostics(), ErrorAction.reportOnGithub(), ErrorAction.ignore())) {
|
||||
var custom = event.getCustomActions();
|
||||
for (var c : custom) {
|
||||
var ac = createActionComp(c);
|
||||
actionBox.getChildren().add(ac);
|
||||
}
|
||||
|
||||
if (event.isReportable()) {
|
||||
for (var action : List.of(ErrorAction.sendDiagnostics(), ErrorAction.reportOnGithub())) {
|
||||
var ac = createActionComp(action);
|
||||
actionBox.getChildren().add(ac);
|
||||
}
|
||||
actionBox.getChildren().get(1).getStyleClass().addAll(BUTTON_OUTLINED, ACCENT);
|
||||
|
||||
content.getChildren().addAll(actionBox, new Separator(Orientation.HORIZONTAL));
|
||||
}
|
||||
|
||||
for (var action :
|
||||
List.of(ErrorAction.ignore())) {
|
||||
var ac = createActionComp(action);
|
||||
actionBox.getChildren().add(ac);
|
||||
}
|
||||
actionBox.getChildren().get(1).getStyleClass().addAll(BUTTON_OUTLINED, ACCENT);
|
||||
|
||||
content.getChildren().addAll(actionBox, new Separator(Orientation.HORIZONTAL));
|
||||
|
||||
var details = createDetails();
|
||||
content.getStyleClass().add("top");
|
||||
content.setFillWidth(true);
|
||||
|
|
Loading…
Reference in a new issue