Skip to content

Commit

Permalink
Merge pull request #4402 from chimp1984/move-column-in-dao-vote-results
Browse files Browse the repository at this point in the history
Move merit and stake column to the right
  • Loading branch information
sqrrm committed Aug 13, 2020
2 parents 0931792 + bc0284b commit 176fc23
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ public void updateItem(final VoteListItem item, boolean empty) {
});
votesTableView.getColumns().add(column);

column = new AutoTooltipTableColumn<>(Res.get("dao.results.votes.table.header.stakeAndMerit"));
column = new AutoTooltipTableColumn<>(Res.get("dao.results.votes.table.header.merit"));
column.setSortable(false);
column.setMinWidth(100);
column.setCellValueFactory((item) -> new ReadOnlyObjectWrapper<>(item.getValue()));
Expand All @@ -299,7 +299,7 @@ public TableCell<VoteListItem, VoteListItem> call(
public void updateItem(final VoteListItem item, boolean empty) {
super.updateItem(item, empty);
if (item != null)
setText(item.getMeritAndStake());
setText(item.getMerit());
else
setText("");
}
Expand All @@ -308,7 +308,7 @@ public void updateItem(final VoteListItem item, boolean empty) {
});
votesTableView.getColumns().add(column);

column = new AutoTooltipTableColumn<>(Res.get("dao.results.votes.table.header.merit"));
column = new AutoTooltipTableColumn<>(Res.get("dao.results.votes.table.header.stake"));
column.setSortable(false);
column.setMinWidth(100);
column.setCellValueFactory((item) -> new ReadOnlyObjectWrapper<>(item.getValue()));
Expand All @@ -322,7 +322,7 @@ public TableCell<VoteListItem, VoteListItem> call(
public void updateItem(final VoteListItem item, boolean empty) {
super.updateItem(item, empty);
if (item != null)
setText(item.getMerit());
setText(item.getStake());
else
setText("");
}
Expand All @@ -331,7 +331,7 @@ public void updateItem(final VoteListItem item, boolean empty) {
});
votesTableView.getColumns().add(column);

column = new AutoTooltipTableColumn<>(Res.get("dao.results.votes.table.header.stake"));
column = new AutoTooltipTableColumn<>(Res.get("dao.results.votes.table.header.stakeAndMerit"));
column.setSortable(false);
column.setMinWidth(100);
column.setCellValueFactory((item) -> new ReadOnlyObjectWrapper<>(item.getValue()));
Expand All @@ -345,7 +345,7 @@ public TableCell<VoteListItem, VoteListItem> call(
public void updateItem(final VoteListItem item, boolean empty) {
super.updateItem(item, empty);
if (item != null)
setText(item.getStake());
setText(item.getMeritAndStake());
else
setText("");
}
Expand Down

0 comments on commit 176fc23

Please sign in to comment.