Skip to content

Commit

Permalink
JNG-5768 operation selector submit fix (#414)
Browse files Browse the repository at this point in the history
  • Loading branch information
noherczeg authored Jun 12, 2024
1 parent 12dea39 commit b1ca439
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,12 @@ public static String containerButtonGroupButtonDisabledConditions(Button button,
}
segments.add("isLoading");

if (container.isIsSelector() && button.getActionDefinition() instanceof CallOperationActionDefinition callOperationActionDefinition) {
if (!callOperationActionDefinition.getOperation().getInput().isIsOptional()) {
segments.add("!selectionDiff.length");
}
}

return String.join(" || ", segments);
}

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@

<judo-meta-ui-version>1.1.0.20240604_105835_a46ed24f_develop</judo-meta-ui-version>
<judo-generator-commons-version>1.0.0.20231009_184136_321053b3_develop</judo-generator-commons-version>
<judo-ui-typescript-rest-version>1.0.0.20240612_165732_227581db_bugfix_JNG_5767_handle_missing_single_association</judo-ui-typescript-rest-version>
<judo-ui-typescript-rest-version>1.0.0.20240612_193925_8ffad91b_develop</judo-ui-typescript-rest-version>

<surefire-version>3.0.0-M7</surefire-version>
<!--suppress UnresolvedMavenProperty -->
Expand Down

0 comments on commit b1ca439

Please sign in to comment.