Skip to content

Commit

Permalink
MID-8658 metadata button hidden for release 4.7, not working properly…
Browse files Browse the repository at this point in the history
… yet
  • Loading branch information
1azyman committed Apr 13, 2023
1 parent f85ad76 commit e132e96
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,12 @@ public void onClick(AjaxRequestTarget target) {
showMetadata(target, metadataModel);
}
};
metadata.add(new VisibleBehaviour(() -> {
VisualizationItemValue val = model.getObject();
return val != null && val.getSourceValue() != null && !getModelObject().isNullEstimatedOldValues() && metadataModel.getObject() != null;
}));
// todo MID-8658 not finished yet, hidden for 4.7 release
metadata.add(VisibleBehaviour.ALWAYS_INVISIBLE);
// metadata.add(new VisibleBehaviour(() -> {
// VisualizationItemValue val = model.getObject();
// return val != null && val.getSourceValue() != null && !getModelObject().isNullEstimatedOldValues() && metadataModel.getObject() != null;
// }));
parent.add(metadata);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,10 +229,12 @@ public void onClick(AjaxRequestTarget target) {
showMetadata(target, metadataModel);
}
};
metadata.add(new VisibleBehaviour(() -> {
VisualizationDto val = model.getObject();
return val != null && val.getVisualization().getSourceValue() != null && metadataModel.getObject() != null;
}));
// todo MID-8658 not finished yet, hidden for 4.7 release
metadata.add(VisibleBehaviour.ALWAYS_INVISIBLE);
// metadata.add(new VisibleBehaviour(() -> {
// VisualizationDto val = model.getObject();
// return val != null && val.getVisualization().getSourceValue() != null && metadataModel.getObject() != null;
// }));
headerPanel.add(metadata);

final Label warning = new Label(ID_WARNING);
Expand Down

0 comments on commit e132e96

Please sign in to comment.