Add introductory screen to check view if main run is not started

This commit is contained in:
Armin Schrenk
2021-07-13 15:52:53 +02:00
parent e40ce62877
commit 102ab93dbd
3 changed files with 12 additions and 11 deletions

View File

@@ -68,10 +68,13 @@ public class CheckListController implements FxController {
}
@FXML
public void toggleSelectAll(ActionEvent event) {
if (event.getSource() instanceof CheckBox c) {
checks.forEach(t -> t.chosenForExecutionProperty().set(c.isSelected()));
}
public void selectAllChecks() {
checks.forEach(t -> t.chosenForExecutionProperty().set(true));
}
@FXML
public void deselectAllChecks() {
checks.forEach(t -> t.chosenForExecutionProperty().set(false));
}
@FXML

View File

@@ -24,10 +24,11 @@
</fx:define>
<children>
<HBox spacing="12" VBox.vgrow="ALWAYS">
<VBox minWidth="80" maxWidth="200" spacing="6" HBox.hgrow="ALWAYS" >
<Label fx:id="listHeading" text="%health.checkList.header"/>
<CheckBox onAction="#toggleSelectAll" text="%health.checkList.selectAllBox" visible="${!controller.mainRunStarted}" managed="${!controller.mainRunStarted}" />
<ListView fx:id="checksListView" VBox.vgrow="ALWAYS" minWidth="150"/>
<ListView fx:id="checksListView" VBox.vgrow="ALWAYS" prefWidth="175"/>
<VBox alignment="CENTER" visible="${!controller.mainRunStarted}" managed="${!controller.mainRunStarted}" HBox.hgrow="ALWAYS">
<Label text="TODO: Introductory/Explanatory Text? "/>
<Button onAction="#selectAllChecks" text="%health.checkList.selectAllBox" />
<Button onAction="#deselectAllChecks" text="TODO:Deselect all Checks" />
</VBox>
<StackPane visible="${controller.mainRunStarted}" managed="${controller.mainRunStarted}" HBox.hgrow="ALWAYS">
<VBox minWidth="300" alignment="CENTER" visible="${!controller.anyCheckSelected}" managed="${!controller.anyCheckSelected}" >

View File

@@ -148,9 +148,6 @@ migration.impossible.moreInfo=The vault can still be opened with an older versio
# Health Check
health.title=Health Check of \"%s\"
health.start.configValid=Reading and parsing vault configuration file was successful. Proceed to select checks.
health.start.configInvalid=Error while reading and parsing the vault configuration file.
health.checkList.header=Available Health Checks
health.checkList.selectAllBox=Select All
health.check.runBatchBtn=Run Selected Checks
## Detail view