mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-25 09:00:26 +00:00
Fix error handler with empty details
This commit is contained in:
parent
b0491bbd66
commit
b36ca8f557
1 changed files with 7 additions and 4 deletions
|
@ -259,9 +259,7 @@ public class ErrorHandlerComp extends SimpleComp {
|
|||
actionBox.getChildren().get(1).getStyleClass().addAll(BUTTON_OUTLINED, ACCENT);
|
||||
}
|
||||
|
||||
content.getChildren().addAll(actionBox, new Separator(Orientation.HORIZONTAL));
|
||||
|
||||
var details = createDetails();
|
||||
content.getChildren().addAll(actionBox);
|
||||
content.getStyleClass().add("top");
|
||||
content.setFillWidth(true);
|
||||
content.setPrefWidth(600);
|
||||
|
@ -269,9 +267,14 @@ public class ErrorHandlerComp extends SimpleComp {
|
|||
|
||||
var layout = new BorderPane();
|
||||
layout.setCenter(content);
|
||||
layout.setBottom(details);
|
||||
layout.getStyleClass().add("error-handler-comp");
|
||||
|
||||
if (event.getThrowable() != null) {
|
||||
content.getChildren().add(new Separator(Orientation.HORIZONTAL));
|
||||
var details = createDetails();
|
||||
layout.setBottom(details);
|
||||
}
|
||||
|
||||
return layout;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue