diff --git a/src/main/java/org/gcube/portlets/gcubeckan/gcubeckandatacatalog/client/view/CkanMetadataManagementPanel.java b/src/main/java/org/gcube/portlets/gcubeckan/gcubeckandatacatalog/client/view/CkanMetadataManagementPanel.java index 33af658..5154cb3 100644 --- a/src/main/java/org/gcube/portlets/gcubeckan/gcubeckandatacatalog/client/view/CkanMetadataManagementPanel.java +++ b/src/main/java/org/gcube/portlets/gcubeckan/gcubeckandatacatalog/client/view/CkanMetadataManagementPanel.java @@ -67,6 +67,8 @@ public class CkanMetadataManagementPanel extends FlowPanel { // user's own private InlineHTML separatorMyInfo = null; private InlineHTML separatorAdminButtons = null; + + private DropdownButton dropMyOptionButtons = new DropdownButton("My..."); private NavLink myDatasets = new NavLink("My Items"); private NavLink myOrganizations = new NavLink("My Organizations"); private NavLink myGroups = new NavLink("My Groups"); @@ -179,13 +181,12 @@ public class CkanMetadataManagementPanel extends FlowPanel { separatorMyInfo.setVisible(true); nav.add(separatorMyInfo); - DropdownButton dropMy = new DropdownButton("My..."); - dropMy.setBaseIcon(IconType.USER); - dropMy.add(myOrganizations); - dropMy.add(myGroups); - dropMy.add(myDatasets); - dropMy.setType(ButtonType.LINK); - nav.add(dropMy); + dropMyOptionButtons.setBaseIcon(IconType.USER); + dropMyOptionButtons.add(myOrganizations); + dropMyOptionButtons.add(myGroups); + dropMyOptionButtons.add(myDatasets); + dropMyOptionButtons.setType(ButtonType.LINK); + nav.add(dropMyOptionButtons); separatorAdminButtons = new InlineHTML( "|"); @@ -520,9 +521,10 @@ public class CkanMetadataManagementPanel extends FlowPanel { insertMeta.setVisible(false); editMeta.setVisible(false); deleteItem.setVisible(false); - myDatasets.setVisible(false); - myOrganizations.setVisible(false); - myGroups.setVisible(false); + dropMyOptionButtons.setVisible(false); +// myDatasets.setVisible(false); +// myOrganizations.setVisible(false); +// myGroups.setVisible(false); manageGRSFProduct.setVisible(false); manageCModS.setVisible(false); @@ -540,9 +542,10 @@ public class CkanMetadataManagementPanel extends FlowPanel { types.setVisible(false); separatorMyInfo.setVisible(false); separatorAdminButtons.setVisible(false); - myDatasets.setVisible(false); - myOrganizations.setVisible(false); - myGroups.setVisible(false); + dropMyOptionButtons.setVisible(false); +// myDatasets.setVisible(false); +// myOrganizations.setVisible(false); +// myGroups.setVisible(false); statistics.setVisible(false); manageGRSFProduct.setVisible(false); manageCModS.setVisible(false);