Skip to content
Snippets Groups Projects
Commit e5da00a8 authored by Tobias Ullerich's avatar Tobias Ullerich
Browse files

Improve playout log view buttons

parent 25ae33a0
Branches
Tags
No related merge requests found
......@@ -46,6 +46,8 @@ public class PlayoutLogViewController extends NVC {
@FXML
private Button exportButton;
@FXML
private Button exportCsvButton;
@FXML
private Button deleteButton;
@FXML
private Button finishButton;
......@@ -81,8 +83,11 @@ public class PlayoutLogViewController extends NVC {
SettingsProxy.getSettings(PlayoutLogSettings.class).autoStartLogging(newValue));
exportButton.setDisable(true);
logList.getSelectionModel().getSelectedItems().addListener((InvalidationListener) observable ->
exportButton.setDisable(logList.getSelectionModel().getSelectedItems().size() != 1));
exportCsvButton.setDisable(true);
logList.getSelectionModel().getSelectedItems().addListener((InvalidationListener) observable -> {
exportButton.setDisable(logList.getSelectionModel().getSelectedItems().size() != 1);
exportCsvButton.setDisable(logList.getSelectionModel().getSelectedItems().isEmpty());
});
deleteButton.disableProperty().bind(logList.getSelectionModel().selectedItemProperty().isNull());
}
......
......@@ -5,6 +5,6 @@ PlayoutLogDialog.Label.Headline=PlayOut Log
PlayoutLogDialog.Checkbox.AutoStart=Automatisch starten bei Programmstart
PlayoutLogDialog.Button.Start=Starten
PlayoutLogDialog.Button.Stop=Stoppen
PlayoutLogDialog.Button.Export=Exportieren...
PlayoutLogDialog.Button.ExportAll=Alle Exportieren...
PlayoutLogDialog.Button.Export=PDF Exportieren...
PlayoutLogDialog.Button.ExportAll=CSV Exportieren...
PlayoutLogDialog.Button.Delete=L\u00F6schen...
\ No newline at end of file
......@@ -25,7 +25,7 @@
<Button fx:id="exportButton" maxWidth="1.7976931348623157E308" mnemonicParsing="false"
onAction="#exportButtonHandler" prefWidth="100.0" text="%PlayoutLogDialog.Button.Export"
VBox.vgrow="ALWAYS"/>
<Button fx:id="exportAllButton" maxWidth="1.7976931348623157E308" mnemonicParsing="false"
<Button fx:id="exportCsvButton" maxWidth="1.7976931348623157E308" mnemonicParsing="false"
onAction="#exportMultipleCsvHandler" prefWidth="100.0" text="%PlayoutLogDialog.Button.ExportAll"
VBox.vgrow="ALWAYS"/>
<Button fx:id="deleteButton" maxWidth="1.7976931348623157E308" mnemonicParsing="false"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment