Skip to content

Commit

Permalink
Issue #15: Small UX fixes for batch mode
Browse files Browse the repository at this point in the history
  • Loading branch information
brobert committed Feb 27, 2016
1 parent c0021a3 commit cdc8481
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,11 @@ void singleShotClicked(ActionEvent event) {
@FXML
void batchStartClicked(ActionEvent event) {
ObservableList<Map<String, String>> selectedItems = FXCollections.observableArrayList();
highlightedRows.stream().map(batchDataTable.getItems()::get).forEach(selectedItems::add);
if (highlightedRows.isEmpty()) {
selectedItems.addAll(batchDataTable.getItems());
} else {
highlightedRows.stream().map(batchDataTable.getItems()::get).forEach(selectedItems::add);
}
BatchRunner runner = new BatchRunner(loginHandler, concurencyChoice.getValue(), getActions(), selectedItems, defaults, defaults.keySet());
CurlyApp.openActivityMonitor(runner);
}
Expand Down Expand Up @@ -280,7 +284,6 @@ private void loadData(List<Map<String, String>> data) {
});

batchDataTable.setItems(new ObservableListWrapper<>(data));
batchSize.setText(String.valueOf(data.size()));
}

int batchSizeValue = 0;
Expand Down

0 comments on commit cdc8481

Please sign in to comment.