Skip to content
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.

Commit

Permalink
Table total aggregation bottom row does not disappear if showTotalAgg…
Browse files Browse the repository at this point in the history
…regation is set to false #548
  • Loading branch information
glebfox committed Jun 28, 2021
1 parent 0c87310 commit d4d7c00
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ui/src/main/java/io/jmix/ui/widget/JmixTable.java
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,7 @@ public void beforeClientResponse(boolean initial) {
updateAggregatableTooltips();
updateHtmlCaptionColumns();

if (isAggregatable()) {
if (isAggregatable() && isShowTotalAggregation()) {
if (AggregationStyle.BOTTOM.equals(getAggregationStyle())) {
updateFooterAggregation();
}
Expand Down
6 changes: 4 additions & 2 deletions ui/src/main/java/io/jmix/ui/widget/JmixTreeTable.java
Original file line number Diff line number Diff line change
Expand Up @@ -847,8 +847,10 @@ public void beforeClientResponse(boolean initial) {
updateAggregatableTooltips();
updateHtmlCaptionColumns();

if (AggregationStyle.BOTTOM.equals(getAggregationStyle())) {
updateFooterAggregation();
if (isAggregatable() && isShowTotalAggregation()) {
if (AggregationStyle.BOTTOM.equals(getAggregationStyle())) {
updateFooterAggregation();
}
}

if (focusColumn != null) {
Expand Down

0 comments on commit d4d7c00

Please sign in to comment.