Skip to content

Commit

Permalink
adding visibility for base collection tab of object collection page
Browse files Browse the repository at this point in the history
  • Loading branch information
skublik committed Sep 25, 2020
1 parent e9a6b7d commit be701ad
Showing 1 changed file with 11 additions and 1 deletion.
Expand Up @@ -145,7 +145,17 @@ protected ItemVisibility getBasicTabVisibility(ItemWrapper<?, ?> itemWrapper) {

@Override
public WebMarkupContainer createPanel(String panelId) {
return createContainerPanel(panelId, getObjectModel(), ObjectCollectionType.F_BASE_COLLECTION, CollectionRefSpecificationType.COMPLEX_TYPE);
return new SingleContainerPanel<CollectionRefSpecificationType>(panelId, createModel(getObjectModel(), ObjectCollectionType.F_BASE_COLLECTION),
CollectionRefSpecificationType.COMPLEX_TYPE) {
@Override
protected ItemVisibility getVisibility(ItemPath itemPath) {
if (ItemPath.create(ObjectCollectionType.F_BASE_COLLECTION, CollectionRefSpecificationType.F_BASE_COLLECTION_REF)
.isSuperPathOrEquivalent(itemPath)) {
return ItemVisibility.HIDDEN;
}
return ItemVisibility.AUTO;
}
};
}
});

Expand Down

0 comments on commit be701ad

Please sign in to comment.