From b0dc259d6c6817e734349f58cf99e020abb7b71e Mon Sep 17 00:00:00 2001 From: "francesco.mangiacrapa" Date: Wed, 15 May 2024 09:56:50 +0200 Subject: [PATCH] Hiding "Logged in as {ROLE}" as discussed --- .../gcubeckandatacatalog/client/GCubeCkanDataCatalog.java | 2 +- .../client/view/GCubeCkanDataCatalogPanel.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/gcube/portlets/gcubeckan/gcubeckandatacatalog/client/GCubeCkanDataCatalog.java b/src/main/java/org/gcube/portlets/gcubeckan/gcubeckandatacatalog/client/GCubeCkanDataCatalog.java index 934d278..902e1d2 100644 --- a/src/main/java/org/gcube/portlets/gcubeckan/gcubeckandatacatalog/client/GCubeCkanDataCatalog.java +++ b/src/main/java/org/gcube/portlets/gcubeckan/gcubeckandatacatalog/client/GCubeCkanDataCatalog.java @@ -27,7 +27,7 @@ public class GCubeCkanDataCatalog implements EntryPoint { public static final String REVERT_QUERY_PARAM = "manage"; public static final String GCUBE_CKAN_IFRAME = "gcube-ckan-iframe"; - public static final String LOGGED_IN_DIV = "logged_in"; + //public static final String LOGGED_IN_DIV = "logged_in"; /** * This is the entry point method. diff --git a/src/main/java/org/gcube/portlets/gcubeckan/gcubeckandatacatalog/client/view/GCubeCkanDataCatalogPanel.java b/src/main/java/org/gcube/portlets/gcubeckan/gcubeckandatacatalog/client/view/GCubeCkanDataCatalogPanel.java index 9ea0ffe..1f0d60b 100644 --- a/src/main/java/org/gcube/portlets/gcubeckan/gcubeckandatacatalog/client/view/GCubeCkanDataCatalogPanel.java +++ b/src/main/java/org/gcube/portlets/gcubeckan/gcubeckandatacatalog/client/view/GCubeCkanDataCatalogPanel.java @@ -200,7 +200,7 @@ public class GCubeCkanDataCatalogPanel extends BaseViewTemplate { managementPanel.visibilityEditItemButton(true); managementPanel.visibilityDeleteItemButton(true); managementPanel.enablePublishItemButton(true); - RootPanel.get(GCubeCkanDataCatalog.LOGGED_IN_DIV).add(new HTML("Logged in as "+RolesCkanGroupOrOrg.ADMIN)); + //RootPanel.get(GCubeCkanDataCatalog.LOGGED_IN_DIV).add(new HTML("Logged in as "+RolesCkanGroupOrOrg.ADMIN)); break; } case EDITOR: { @@ -208,7 +208,7 @@ public class GCubeCkanDataCatalogPanel extends BaseViewTemplate { managementPanel.visibilityEditItemButton(true); managementPanel.visibilityDeleteItemButton(true); managementPanel.enablePublishItemButton(true); - RootPanel.get(GCubeCkanDataCatalog.LOGGED_IN_DIV).add(new HTML("Logged in as "+RolesCkanGroupOrOrg.EDITOR)); + //RootPanel.get(GCubeCkanDataCatalog.LOGGED_IN_DIV).add(new HTML("Logged in as "+RolesCkanGroupOrOrg.EDITOR)); break; } case MEMBER: { @@ -218,7 +218,7 @@ public class GCubeCkanDataCatalogPanel extends BaseViewTemplate { // not the rights to publish managementPanel.visibilityPublishItemButton(true, true); managementPanel.enablePublishItemButton(false); - RootPanel.get(GCubeCkanDataCatalog.LOGGED_IN_DIV).add(new HTML("Logged in as "+RolesCkanGroupOrOrg.MEMBER)); + //RootPanel.get(GCubeCkanDataCatalog.LOGGED_IN_DIV).add(new HTML("Logged in as "+RolesCkanGroupOrOrg.MEMBER)); break; } default: {