Skip to content

Commit

Permalink
JNG-6005 remove redundant tag label wrapping (#484)
Browse files Browse the repository at this point in the history
  • Loading branch information
noherczeg authored Nov 6, 2024
1 parent 64432a1 commit a77344b
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@

import static hu.blackbelt.judo.ui.generator.react.UiActionsHelper.isActionDefinitionCRUDCommand;
import static hu.blackbelt.judo.ui.generator.react.UiPageContainerHelper.containerComponentName;
import static hu.blackbelt.judo.ui.generator.react.UiTableHelper.isTableTag;
import static java.util.Arrays.stream;

@Log
Expand Down Expand Up @@ -514,6 +515,9 @@ public static boolean isLinkAssociation(Link link) {
}

public static boolean displayTableHeading(Table table, PageContainer container) {
if (isTableTag(table)) {
return false;
}
return elementHasIconOrLabel(table) && !container.isIsSelector() && !container.isTable();
}

Expand Down

0 comments on commit a77344b

Please sign in to comment.