Skip to content

Commit

Permalink
Temporarily disable click listener in Accounts tree grid
Browse files Browse the repository at this point in the history
  • Loading branch information
sprevilla committed Mar 5, 2020
1 parent 6aa1db5 commit 8178ca0
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,13 @@ public Grid createGrid() {
TreeGrid<Account> tree = new TreeGrid();
tree.setSizeFull();
tree.setSelectionMode(Grid.SelectionMode.SINGLE);
tree.addItemClickListener(event -> {
// tree.addItemClickListener(event -> {
//do nothing if it's root
if (event.getItem().getRoot().getId() != event.getItem().getId()) {
String url = getGeneralRoute() + "/" + getHelper().getItemId(event.getItem());
getApp().getNavigator().navigateTo(url);
}
});
// if (event.getItem().getRoot().getId() != event.getItem().getId()) {
// String url = getGeneralRoute() + "/" + getHelper().getItemId(event.getItem());
// getApp().getNavigator().navigateTo(url);
// }
// });
tree.setItemCollapseAllowedProvider(account -> account.getParent() != null);
tree.addExpandListener(listener -> {
if (listener.getExpandedItem().getParent() != null)
Expand Down

0 comments on commit 8178ca0

Please # to comment.