Skip to content

Commit

Permalink
Do not show UNKNOWN in the list of boards
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank Delporte committed Nov 7, 2023
1 parent 54a2487 commit ff49693
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,11 @@ public BoardInfoView() {

@Override
public void onAttach(AttachEvent event) {
UI.getCurrent().access(() -> listBox.setItems(Arrays.stream(BoardModel.values())
var listWithoutUnknown = Arrays.stream(BoardModel.values())
.filter(bm -> bm != BoardModel.UNKNOWN)
.sorted(Comparator.comparing(BoardModel::getLabel))
.toList()));
.toList();
UI.getCurrent().access(() -> listBox.setItems(listWithoutUnknown));
}

private void showBoard(BoardModel boardModel) {
Expand Down

0 comments on commit ff49693

Please sign in to comment.