Skip to content

Commit

Permalink
JNG-6112 fix table operation enabled by
Browse files Browse the repository at this point in the history
  • Loading branch information
noherczeg committed Jan 15, 2025
1 parent 00a57d1 commit 9756300
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ public static String tableButtonVisibilityConditions(Button button, Table table,
return result += "!editMode && (isFormUpdateable ? isFormUpdateable() : false)";
}
if (container.isView()) {
if (button.getActionDefinition().getIsOpenSelectorAction() || button.getActionDefinition().getIsRemoveAction()) {
if (button.getActionDefinition().getIsOpenAddSelectorAction() || button.getActionDefinition().getIsOpenSetSelectorAction() || button.getActionDefinition().getIsRemoveAction()) {
return result += "(isFormUpdateable ? (isFormUpdateable()" + (!table.isIsEager() ? "&& !editMode" : "") + ") : false)";
}
if (button.getActionDefinition().getIsBulkRemoveAction()) {
Expand Down

0 comments on commit 9756300

Please sign in to comment.