Skip to content

Commit

Permalink
MID-8147: fix for resource wizard schema step (tempate with schema ge…
Browse files Browse the repository at this point in the history
…nerationConstraints)
  • Loading branch information
skublik committed Oct 7, 2022
1 parent cd8449c commit 4906459
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ protected void onUpdateHeader(AjaxRequestTarget target, boolean selected, DataTa
protected IModel<Boolean> getEnabled(IModel<SelectableBean<ObjectClassWrapper>> rowModel) {
if (rowModel == null) {
if (selectedItems.getObject().size() == getResourceModel().getObjectClassesModel().getObject().size()) {
return Model.of(selectedItems.getObject().values().stream().allMatch(enabled -> !enabled));
return Model.of(!selectedItems.getObject().values().stream().allMatch(enabled -> !enabled));
}
return super.getEnabled(rowModel);
}
Expand Down

0 comments on commit 4906459

Please sign in to comment.